void OnAddToLog(object sender, CLogEventArgs e) { if (!Visible) return; if (InvokeRequired) { Invoke(new Action<CLogEntry>(AddLogEntry), new object[] { e.LogEntry }); return; } AddLogEntry(e.LogEntry); }
private void OnAddToLog(CLogEntry logentry) { CLogEventArgs e = new CLogEventArgs(); e.LogEntry = logentry; EventHandler <CLogEventArgs> handler = SourceEventListener; if (handler != null) { handler(this, e); } }
void OnAddToLog(object sender, CLogEventArgs e) { if (!Visible) { return; } if (InvokeRequired) { Invoke(new Action <CLogEntry>(AddLogEntry), new object[] { e.LogEntry }); return; } AddLogEntry(e.LogEntry); }
private void OnAddToLog(CLogEntry logentry) { CLogEventArgs e = new CLogEventArgs(); e.LogEntry = logentry; EventHandler<CLogEventArgs> handler = SourceEventListener; if (handler != null) { handler(this, e); } }