public override void Event(ExecutionLoggerEventType type, object data) { string message = type.ToString() + ": " + data + "\r\n"; if (_textBox.InvokeRequired) { _textBox.Invoke(new Action(() => { _textBox.AppendText(message); })); } else { _textBox.AppendText(message); } }
public override void Event(ExecutionLoggerEventType type, object data) { string message = type.ToString().PadRight(11) + "; " + DateTime.Now.ToString() + "; " + _sessionName + data + "\r\n"; WriteString(message); }