private void LoginBtn_Click_1(object sender, EventArgs e)
 {
     if (UnitOfWork.SettingsService.VerifyLogin(UsernameField.Text, PasswordField.Text))
     {
         this.Close();
         AdminForm admin = new AdminForm(UnitOfWork);
         admin.Show();
     }
     else
     {
         this.Close();
         MessageBox.Show("Invalid Username/Password");
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     AdminForm admin = new AdminForm();
     admin.Show();
 }