示例#1
0
        /// <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;
            }
        }
示例#2
0
 private void Continue_Button_Click(object sender, RoutedEventArgs e)
 {
     DialogResult = brDialogResult.CONTINUE;
     this.Close();
 }
示例#3
0
 private void Stop_Button_Click(object sender, RoutedEventArgs e)
 {
     DialogResult = brDialogResult.STOP;
     this.Close();
 }