Пример #1
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "*****@*****.**" && textBox2.Text == "jwZh2x@p")
     {
         MenuBegyna zakaz = new MenuBegyna();
         zakaz.Show();
         this.Hide();
     }
     else if (textBox1.Text == "*****@*****.**" && textBox2.Text == "9ApEdKdo")
     {
         MenuKoordinacii zakaz = new MenuKoordinacii();
         zakaz.Show();
         this.Hide();
     }
     else if (textBox1.Text == "*****@*****.**" && textBox2.Text == "OPuDrw9O")
     {
         MenuAdministracii zakaz = new MenuAdministracii();
         zakaz.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Неправильный логин/пароль");
     }
 }
        private void Back_Click(object sender, EventArgs e)
        {
            MenuKoordinacii zakaz = new MenuKoordinacii();

            zakaz.Show();
            this.Hide();
        }