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); } }
private void CloseMethod(object parameter) { CurrentEventAggregator.GetEvent <CloseEditViewEvent>().Publish(EventArgs.Empty); }