private void emp_Click(object sender, EventArgs e) { this.Hide(); EmpolyeeForm empForm = new EmpolyeeForm(); empForm.ShowDialog(); }
private void getPass_Click(object sender, EventArgs e) { this.Hide(); s = passText.Text; if (s == "admin") { AccountantForm accForm = new AccountantForm(); accForm.Show(); } else { EmpolyeeForm empForm = new EmpolyeeForm(); empForm.Show(); } }