Esempio n. 1
0
 protected virtual void OnLog(BO.LogEventArgs e)
 {
     if (Log != null)
     {
         Log(this, e);
     }
 }
Esempio n. 2
0
 private void LogHandler(object sender, ServiceControl.BusinessObjects.LogEventArgs e)
 {
     if (tbxLog.Dispatcher.Thread == System.Threading.Thread.CurrentThread)
     {
         tbxLog.AppendText(string.Format("{0}\n", e.Text));
     }
     else
     {
         tbxLog.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal,
                                       new EventHandler <BO.LogEventArgs>(LogHandler), sender, new object[] { e });
     }
 }
Esempio n. 3
0
 void LogHandler(object sender, BO.LogEventArgs e)
 {
     OnLog(e);
 }