// Debug void storeManager_DebugReport(object sender, DebugReportEventArgs e) { if (DebugReport != null) { DebugReport(this, e); } }
void Object_DebugReport(object sender, DebugReportEventArgs e) { bool logReport = false; if (e.Severity < 10) if (Settings.Default.DebugAdvanced) logReport = true; if (e.Severity >= 10) logReport = true; if (logReport) { Functions.WriteLineToLogFile(e.DebugText); if (e.ThrownException != null) Functions.WriteExceptionToLogFile(e.ThrownException); } }
void RecTV_DebugReport(object sender, DebugReportEventArgs e) { if (! Settings.Default.DebugRecTV) return; Functions.WriteLineToLogFile(e.DebugText); if (e.ThrownException != null) Functions.WriteExceptionToLogFile(e.ThrownException); }
// Debug void storeManager_DebugReport(object sender, DebugReportEventArgs e) { if (DebugReport != null) DebugReport(this, e); }