Exemple #1
0
 private void Login(bool isExist)
 {
     if (isExist)
     {
         //Open MainForm
         view.ShowMainForm();
         view.CloseView();
     }
     else
     {
         //show error
         view.SetError("Username/Password does not match");
         view.ClearFields();
     }
 }
 private void View_CancelClicked(ILoginView sender)
 {
     sender.CloseView();
 }
 /// <summary>
 /// Closes the view
 /// </summary>
 private void Close()
 {
     Logger.debug("Call View Close", origin: "ChatMail.ChatPresenter");
     m_loginView.CloseView(null, null);
 }