private void ErrorForm_FormClosed(object sender, FormClosedEventArgs e) { if (cbxSendError.Checked) { ErrorSendThread.SendError(m_error, m_log, Framework.MainWindow.TakeScreenshot()); } }
private void LoadDataErrorForm_FormClosed(object sender, FormClosedEventArgs e) { if (cbxSendError.Checked) { ErrorSendThread.SendError(m_error, Logging.GetFeedbackLastLogEntries(), MainWindow.Instance.TakeScreenshot()); } }
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()); } }
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; } }