Example #1
0
 void _server_Error(Mercury.MercuryErrorEventArgs error)
 {
     listBox1.Invoke(new Action(delegate { listBox1.Items.Add(error.Message); listBox1.SelectedIndex = listBox1.Items.Count - 1; }));
     listBox1.Invoke(new Action(delegate { listBox1.Items.Add(error.Exception.ToString()); listBox1.SelectedIndex = listBox1.Items.Count - 1; }));
 }
Example #2
0
 public void MercuryErrorRoutine(Mercury.MercuryErrorEventArgs e)
 {
     WriteEventEntry(e.Message + e.Exception, EventLogEntryType.Error, 0, 0);
 }