void OnAddToLog(object sender, CLogEventArgs e)
 {
     if (!Visible) return;
     if (InvokeRequired)
     {
         Invoke(new Action<CLogEntry>(AddLogEntry), new object[] { e.LogEntry });
         return;
     }
     AddLogEntry(e.LogEntry);
 }
示例#2
0
        private void OnAddToLog(CLogEntry logentry)
        {
            CLogEventArgs e = new CLogEventArgs();

            e.LogEntry = logentry;
            EventHandler <CLogEventArgs> handler = SourceEventListener;

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