示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "admin")
     {
         if (textBox2.Text == "admin")
         {
             MenuAdmin menuAdmin = new MenuAdmin(this);
             menuAdmin.Show();
             textBox1.Clear();
             textBox2.Clear();
         }
         else
         {
             MessageBox.Show("Пароль неверный, попробуйте снова.");
         }
     }
     else if (textBox1.Text == "master")
     {
         if (textBox2.Text == "master")
         {
             MenuMaster menuMaster = new MenuMaster(this);
             menuMaster.Show();
             textBox1.Clear();
             textBox2.Clear();
         }
         else
         {
             MessageBox.Show("Пароль неверный, попробуйте снова.");
         }
     }
     else if (textBox1.Text == "employee")
     {
         if (textBox2.Text == "employee")
         {
             MenuEmployee menuEmployee = new MenuEmployee(this);
             menuEmployee.Show();
             textBox1.Clear();
             textBox2.Clear();
         }
         else
         {
             MessageBox.Show("Пароль неверный, попробуйте снова.");
         }
     }
     else if (textBox1.TextLength == 0 || textBox2.TextLength == 0)
     {
         MessageBox.Show("Введите значения.");
         return;
     }
 }
示例#2
0
 public ArchiveApplicationsEmployee(MenuEmployee menuEmployee)
 {
     InitializeComponent();
     loadInfoToTable();
 }
 public EquipmentListEmployee(MenuEmployee menuEmployee)
 {
     InitializeComponent();
     loadInfoToTable();
 }
示例#4
0
 public ApplicationsEmployee(MenuEmployee menuEmployee)
 {
     InitializeComponent();
     loadInfoToTable();
     loadInfoToCombobox1();
 }
示例#5
0
 public AboutProgrammEmployee(MenuEmployee menuEmployee)
 {
     InitializeComponent();
 }