Exemplo n.º 1
0
 private void Login(object parameter)
 {
     base.ShowPleaseWaitMessage();
     try
     {
         RolodexPrincipal.Login(_userID, this.View.UserPwdBox.Password);
         if (!Csla.ApplicationContext.User.Identity.IsAuthenticated)
         {
             Status = "Invalid user ID or password";
         }
         else
         {
             Status = "Login successfull.";
         }
         base.HidePleaseWaitMessage();
         if (Csla.ApplicationContext.User.Identity.IsAuthenticated)
         {
             CurrentEventAggregator.GetEvent <ShowCompaniesListEvent>().Publish(EventArgs.Empty);
         }
     }
     catch (Exception ex)
     {
         ErrorHandler.HandleException(ex);
     }
 }
Exemplo n.º 2
0
 private void CloseMethod(object parameter)
 {
     CurrentEventAggregator.GetEvent <CloseEditViewEvent>().Publish(EventArgs.Empty);
 }