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; } }
public ArchiveApplicationsEmployee(MenuEmployee menuEmployee) { InitializeComponent(); loadInfoToTable(); }
public EquipmentListEmployee(MenuEmployee menuEmployee) { InitializeComponent(); loadInfoToTable(); }
public ApplicationsEmployee(MenuEmployee menuEmployee) { InitializeComponent(); loadInfoToTable(); loadInfoToCombobox1(); }
public AboutProgrammEmployee(MenuEmployee menuEmployee) { InitializeComponent(); }