Beispiel #1
0
 private void passwordButton_Click(object sender, EventArgs e)
 {
     pass = passwordBox.Text;
     if (pass == "1298" || pass == "1155")   //Официант, повар
     {
         WaiterChefForm temp = new WaiterChefForm();
         temp.Show();
     }
     else if (pass == "2234")     //Ответственный за поставки
     {
         ControllerForm temp = new ControllerForm();
         temp.Show();
     }
     else if (pass == "1111")     // Администратор
     {
         Admin adm = new Admin();
         adm.Show();
     }
     else if (pass == "8978")     //Директор
     {
         Director dir = new Director();
         dir.Show();
     }
     else
     {
         MessageBox.Show("Неверный пароль!");
     }
 }
Beispiel #2
0
        private void button10_Click(object sender, EventArgs e)
        {
            ControllerForm controller = new ControllerForm();

            controller.Show();
        }