/// <summary> /// Called when the OK button is clicked /// </summary> /// <param name="sender"> /// autogenerated /// </param> /// <param name="e"> /// autogenerated /// </param> private void OkButtonClick(object sender, RoutedEventArgs e) { DialogResult = _ui.IsMasterPWCorrect(PwTextbox.Password); TypedPassword = PwTextbox.Password; Close(); }