Пример #1
0
 public void loginButtonClick(String username)
 {
     if (username == "")
     {
         MessageBox.Show("Empty Username", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         user.Username = username;
         loginForm.Hide();
         OperationForm operationForm = new OperationForm(user);
         operationForm.ShowDialog();
         loginForm.Show();
     }
 }
 public OperationPresenter(OperationForm operation, User user)
 {
     this.user      = user;
     operationForm  = operation;
     historyService = new HistoryService();
 }