Esempio n. 1
0
 private void enterButton_Click(object sender, EventArgs e)
 {
     entity.User user = new entity.User(loginField.Text, passwordField.Text);
     try
     {
         if (userController.validateUser(user))
         {
             receiptController.openRateFormFromLoginForm(this);
         }
         else
         {
             throw new Exception();
         }
     }
     catch (Exception) {
         MessageBox.Show("Invalid login/password");
     }
 }