Example #1
0
        private static void messageBox_SubmitError(object sender, ExceptionDetailEventArgs e)
        {
            ExceptionDialog dialog = sender as ExceptionDialog;

            if (string.IsNullOrWhiteSpace(dialog.UserNotes))
            {
                MessageBox.Show("Please enter some details to help us debug this issue.",
                                "Details Required",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Warning);
                return;
            }

            MailAddress ccAddress = null;

            if (!string.IsNullOrEmpty(dialog.UserEmail))
            {
                try
                {
                    ccAddress = new MailAddress(dialog.UserEmail);
                }
                catch (FormatException ex)
                {
                    MessageBox.Show(ex.Message,
                                    "Invalid Email",
                                    MessageBoxButtons.OK,
                                    MessageBoxIcon.Warning);
                    return;
                }
            }

            SendEmail(ConstructMessage(dialog), ccAddress);
            dialog.SubmitSuccessful = true;
        }
Example #2
0
 static void DispatcherErrorReceived(object sender, ExceptionDetailEventArgs e)
 {
     Console.WriteLine("ERROR -----{0}{1}{0}{2}".FormatWith(Environment.NewLine, e.Message, e.Detail));
     _errorDetails       = "ERROR -----{0}{1}{0}{2}".FormatWith(Environment.NewLine, e.Message, e.Detail);
     _isSessionCompleted = true;
     _sessionError       = true;
 }
Example #3
0
 private void SessionClient_DispatcherErrorReceived(object sender, ExceptionDetailEventArgs e)
 {
     UpdateStatus("ERROR -----{0}{1}{0}{2}".FormatWith(Environment.NewLine, e.Message, e.Detail));
 }
Example #4
0
 private void DispatcherErrorReceived(object sender, ExceptionDetailEventArgs e)
 {
     ApplicationExceptionHandler.UnhandledException(e.Message, e.Detail, UserManager.CurrentUserName);
 }
Example #5
0
        //private void generateReportWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        //{
        //   _excelReport.Close();
        //   EmailTestResult();
        //}

        //private void generateReportWorker_DoWork(object sender, DoWorkEventArgs e)
        //{
        //    object[] args = (object[])e.Argument;

        //    try
        //    {
        //        ReportingEngine.CreateExcelReport((ExcelReportFile)args[0], (IEnumerable<string>)args[1], (string)args[2]);

        //    }
        //    catch (Exception ex)
        //    {
        //        MessageBox.Show(ex.Message, "Report Creation Failure", MessageBoxButton.OK, MessageBoxImage.Error);
        //        TraceFactory.Logger.Error(ex.Message, ex);
        //    }
        //}

        private void Instance_DispatcherExceptionReceived(object sender, ExceptionDetailEventArgs e)
        {
            WriteLine("ERROR -----{0}{1}{0}{2}".FormatWith(Environment.NewLine, e.Message, e.Detail));
        }