123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace IS31Savelev1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if (textBox1.Text == "111")
- {
- if (textBox2.Text == "111")
- {
- Form2 f = new Form2();
- this.Hide();
- f.Show();
- }
- if (textBox1.Text == "222")
- {
- if (textBox2.Text == "222")
- {
- Form2 f = new Form2();
- this.Hide();
- f.Show();
- }
- }
- }
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- // TODO: данная строка кода позволяет загрузить данные в таблицу "iS31SavelevDataSet.user_import". При необходимости она может быть перемещена или удалена.
- this.user_importTableAdapter.Fill(this.iS31SavelevDataSet.user_import);
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- }
- private void button2_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|