public void Log(string message) { if (this.InvokeRequired) { SetLogTextCallback d = new SetLogTextCallback(SetLogText); this.Invoke(d, new object[] { message }); } else { SetLogText(message); } }
public void Log(string message) { if (InvokeRequired) { SetLogTextCallback d = SetLogText; Invoke(d, message); } else { SetLogText(message); } }
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); } }