/// <summary> /// SHow a windows with exception inforamtion. /// </summary> /// <param name="exc">The exception</param> /// <param name="terminating">Indicates if the exception will kill the app</param> public UIExceptionWindow(beRemoteException exc, bool terminating) { // TODO: Complete member initialization this.exception = exc; InitializeComponent(); rtbStack.AppendText(String.Format("{0}", exception)); if (terminating == false) { DialogResult = brDialogResult.CONTINUE; cmdStop.Visibility = System.Windows.Visibility.Collapsed; } else { DialogResult = brDialogResult.STOP; cmdContinue.Visibility = System.Windows.Visibility.Collapsed; } }
private void Continue_Button_Click(object sender, RoutedEventArgs e) { DialogResult = brDialogResult.CONTINUE; this.Close(); }
private void Stop_Button_Click(object sender, RoutedEventArgs e) { DialogResult = brDialogResult.STOP; this.Close(); }