Exemplo n.º 1
0
 protected virtual void OnLog(BO.LogEventArgs e)
 {
     if (Log != null)
     {
         Log(this, e);
     }
 }
Exemplo 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 });
     }
 }
Exemplo n.º 3
0
 void LogHandler(object sender, BO.LogEventArgs e)
 {
     OnLog(e);
 }