示例#1
0
        protected virtual void OnLogAdded(LoggerEventArgs e)
        {
            LoggerEventHandler handler = LogAdded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
 void _logger_LogAdded(object sender, LoggerEventArgs a)
 {
     try
     {
         if (txtBoxErrorLog.InvokeRequired)
         {
             // Need to invoke
             txtBoxErrorLog.Invoke(new MethodInvoker(delegate()
             {
                 txtBoxErrorLog.Text = a.LogDetails;
             }));
         }
         else
         {
             txtBoxErrorLog.Text = a.LogDetails;
         }
     }
     catch (Exception ex)
     {
         txtBoxErrorLog.Text = ex.Message;
     }
 }
示例#3
0
        protected virtual void OnLogAdded(LoggerEventArgs e)
        {
            LoggerEventHandler handler = LogAdded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#4
0
 void _logger_LogAdded(object sender, LoggerEventArgs a)
 {
     try
     {
         if (txtBoxErrorLog.InvokeRequired)
         {
             // Need to invoke
             txtBoxErrorLog.Invoke(new MethodInvoker(delegate()
             {
                 txtBoxErrorLog.Text = a.LogDetails;
             }));
         }
         else
         {
             txtBoxErrorLog.Text = a.LogDetails;
         }
     }
     catch (Exception ex)
     {
         txtBoxErrorLog.Text = ex.Message;
     }
 }