Exemple #1
0
 private void Вход_Click(object sender, EventArgs e)
 {
     Вход.BackgroundImage = Image.FromFile("UI/Button/Login.png");
     if ((textBox1.Text == ulogin) && (textBox2.Text == upass))
     {
         acc = 1;
         Stundent secondForm = new Stundent(this, acc);
         secondForm.Show();
         this.Hide();
     }
     else
     {
         if ((textBox1.Text == login) && (textBox2.Text == pass))
         {
             acc = 2;
             Stundent secondForm = new Stundent(this, acc);
             secondForm.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Не верный логин или пароль.");
         }
     }
 }
Exemple #2
0
 public Form3(Stundent stundent, int account)
 {
     InitializeComponent();
 }