Exemple #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("Неверный пароль!");
     }
 }
Exemple #2
0
        private void button9_Click(object sender, EventArgs e)
        {
            WaiterChefForm wcf = new WaiterChefForm();

            wcf.Show();
        }