Example #1
0
 private void ErrorForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (cbxSendError.Checked)
     {
         ErrorSendThread.SendError(m_error, m_log, Framework.MainWindow.TakeScreenshot());
     }
 }
Example #2
0
 private void LoadDataErrorForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (cbxSendError.Checked)
     {
         ErrorSendThread.SendError(m_error, Logging.GetFeedbackLastLogEntries(), MainWindow.Instance.TakeScreenshot());
     }
 }
Example #3
0
 public static void ReportSilent(Exception e, bool allowSend)
 {
     LogError(e, LogLevel.Error);
     if (allowSend && Framework.Instance.AllowSendErrorReports())
     {
         ErrorSendThread.SendError(ExtractImportantException(e), Logging.GetFeedbackLastLogEntries(), Framework.MainWindow.TakeScreenshot());
     }
 }
Example #4
0
 private void RunProcessForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (!m_process.State.IsEndState())
     {
         MainWindow.Instance.ShowDocker(new ProcesslistDockerFactory());
     }
     if (cbxSendError.Visible && cbxSendError.Checked && !m_isErrorSent)
     {
         ProcessFailedError ex = m_process.GetFailError();
         var logs = new List <LogMessageRecord>();
         logs.AddRange(m_process.LogSource.GetMessages());
         logs.Add(new LogMessageRecord {
             Level = LogLevel.Info, Message = "===============LOW LEVEL LOG============"
         });
         logs.AddRange(Logging.GetFeedbackLastLogEntries());
         ErrorSendThread.SendError(ex, logs, MainWindow.Instance.TakeScreenshot());
         ErrorSendThread.SendError(m_process.GetFailReasonError(), null, null);
         m_isErrorSent = true;
     }
 }