private void pictureBox2_Click_2(object sender, EventArgs e) { FormManage f = new FormManage(); this.Hide(); f.ShowDialog(); }
private void button1_Click_1(object sender, EventArgs e) { acc.Username = txtUsername.Text; acc.Password = txtPassword.Text; acc.IsAdmin = rbAdmin.Checked; if (acc.IsUser(ref EmployeeID)) { if (rbAdmin.Checked) { FormManage f1 = new FormManage(); this.Hide(); f1.ShowDialog(); } if (rbEmployee.Checked) { FormFoodChoices f1 = new FormFoodChoices(EmployeeID); this.Hide(); f1.ShowDialog(); } } }