Example #1
0
 void databaseUpdate_LogEntry(object sender, TimestampMessageEventArgs e)
 {
     if (textBoxLog.InvokeRequired)
     {
         //Thread-safe call
         NewLogEntryCallback d = new NewLogEntryCallback(NewLogEntry);
         Invoke(d, new object[] { e.ToString() });
     }
     else
     {
         NewLogEntry(e.ToString());
     }
 }
Example #2
0
 void databaseUpdate_LogEntry (object sender, TimestampMessageEventArgs e) {
     if (textBoxLog.InvokeRequired) {
         //Thread-safe call
         NewLogEntryCallback d = new NewLogEntryCallback(NewLogEntry);
         Invoke(d, new object[] { e.ToString() });
     } else {
         NewLogEntry(e.ToString());
     }
 }
Example #3
0
 static void databaseUpdate_LogEntry (object sender, TimestampMessageEventArgs e) {
     Console.WriteLine(e.ToString());
 }
Example #4
0
 static void databaseUpdate_LogEntry(object sender, TimestampMessageEventArgs e)
 {
     Console.WriteLine(e.ToString());
 }