예제 #1
0
        private void back_to_admin()
        {
            this.Hide();
            Admin_Form form = new Admin_Form();

            form.ShowDialog();
            this.Close();
        }
예제 #2
0
        private void backForm()
        {
            this.Hide();
            Admin_Form l = new Admin_Form();

            l.ShowDialog();
            this.Close();
        }
예제 #3
0
 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();
         }
     }
 }