Exemple #1
0
 // Called when the user presses OK
 public void OnOk(object sender, RoutedEventArgs args)
 {
     DidConfirm = true;
     try
     {
         if ((bool)Exit)
         {
             _menu.ConfirmationFinished();
         }
         _menu.ConfirmationFinished();
     }
     catch (Exception)
     {
         _window.ConfirmationFinished();
     }
 }
 // Called when the user presses OK
 private void OnOK(object sender, RoutedEventArgs args)
 {
     DidConfirm = true;
     _window.ConfirmationFinished();
 }