private void AppContext_AuthenticationCompleted(object sender, AuthenticationCompletedEventArgs e) { IsBusy = false; Login.CanExecute(true); _canLogin = true; if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs("Login")); } if (LoginButton != null) { LoginButton.IsEnabled = true; } if (e.IsAuthenticated) { if (LoginSuccessful != null) { LoginSuccessful(this, new EventArgs()); } } else { ApplicationEx.Instance.DisplayMessageBox(e.Reference, "Login Invalid"); } }
private void AppContext_AuthenticationCompleted(object sender, AuthenticationCompletedEventArgs e) { IsBusy = false; Login.CanExecute(true); _canLogin = true; if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Login")); if (LoginButton != null) LoginButton.IsEnabled = true; if (e.IsAuthenticated) { if (LoginSuccessful != null) LoginSuccessful(this, new EventArgs()); } else { ApplicationEx.Instance.DisplayMessageBox(e.Reference, "Login Invalid"); } }