private void GetNewPassword(OfxDownloadData ofxData) { var info = OfxRequest.GetSignonInfo(this.myMoney, ofxData.OnlineAccount); ChangePasswordDialog dialog = new ChangePasswordDialog(info, ofxData.OnlineAccount, this.myMoney); dialog.Owner = Application.Current.MainWindow; if (dialog.ShowDialog() == true) { ofxData.Message = "New password is accepted"; ofxData.LinkCaption = this.tryAgainCaption = "Try Download Again"; ofxData.OfxError = OfxErrorCode.None; ofxData.Error = null; } else { Exception ex = dialog.Error; if (ex != null) { ofxData.Message = ex.Message; } else { ofxData.Message = "User cancelled"; } } }
public void ChangePassword(Window owner) { var dlg = new ChangePasswordDialog { Owner = owner }; dlg.ShowDialog(); }
public void ChangePassword(object parameter) { var dig = new ChangePasswordDialog { DataContext = new ChangePasswordViewModel() }; dig.ShowDialog(); }
protected void ChangePassword() { ChangePasswordDialog dialog = new ChangePasswordDialog(); ChangePasswordViewModel vm = new ChangePasswordViewModel(LoggedUser); dialog.DataContext = vm; vm.RequestClose += (x, e) => dialog.Close(); dialog.ShowDialog(); }
private void ChangePasswordCommandExecuted(object obj) { if (PHmi == null) { return; } var d = new ChangePasswordDialog(PHmi); d.ShowDialog(this); }
private void ButtonChangePassword_Click(object sender, RoutedEventArgs e) { ChangePasswordDialog dialog = new ChangePasswordDialog(); if (dialog.ShowDialog() == true) { MessageBox.Show("Passwort geändert!"); } UserInfos(); }