Пример #1
0
 public void Log(string message)
 {
     if (this.InvokeRequired)
     {
         SetLogTextCallback d = new SetLogTextCallback(SetLogText);
         this.Invoke(d, new object[] { message });
     }
     else
     {
         SetLogText(message);
     }
 }
Пример #2
0
 public void Log(string message)
 {
     if (InvokeRequired)
     {
         SetLogTextCallback d = SetLogText;
         Invoke(d, message);
     }
     else
     {
         SetLogText(message);
     }
 }
Пример #3
0
 public void Log(string message)
 {
     if (this.InvokeRequired)
     {
         SetLogTextCallback d = new SetLogTextCallback(SetLogText);
         this.Invoke(d, new object[] { message });
     }
     else
     {
         SetLogText(message);
     }
 }
Пример #4
0
        public void Log(string message, params Object[] args)
        {
            string formatMessage = String.Format(message, args);

            //Write log while the JobQueue is canceling will cause a deadlock.
            if (this.InvokeRequired && _currentUIStatus != UIStatus.Canceling)
            {
                SetLogTextCallback d = new SetLogTextCallback(SetLogText);
                this.Invoke(d, new object[] { formatMessage });
            }
            else
            {
                SetLogText(formatMessage);
            }
        }
Пример #5
0
        public void Log(string message, params Object[] args)
        {
            string formatMessage = String.Format(message, args);

            //Write log while the JobQueue is canceling will cause a deadlock.
            if (this.InvokeRequired && _currentUIStatus != UIStatus.Canceling)
            {
                SetLogTextCallback d = new SetLogTextCallback(SetLogText);
                this.Invoke(d, new object[] { formatMessage });
            }
            else
            {
                SetLogText(formatMessage);
            }
        }