private void back_to_admin() { this.Hide(); Admin_Form form = new Admin_Form(); form.ShowDialog(); this.Close(); }
private void backForm() { this.Hide(); Admin_Form l = new Admin_Form(); l.ShowDialog(); this.Close(); }
private void verifyLogin(User user) { if (username_textbox.Text == user.Username && password_textbox.Text == user.Password) { if (user.Type == "admin") { this.Hide(); Admin_Form form = new Admin_Form(); form.ShowDialog(); this.Close(); } else { nextForm(); } } }