public void OnStatusWrite(object sender, StringEventArgs e) { Logger.info(e.EventString); this.BeginInvoke((MethodInvoker) delegate { delAppendStatusMsg = new DelAppendStatusMsg(this.RichTextBoxStatusMsg.AppendText); if (this.RichTextBoxStatusMsg.InvokeRequired) { Invoke(delAppendStatusMsg, e.EventString); } else { RichTextBoxStatusMsg.AppendText(e.EventString + "\n"); } Logger.info(e.EventString); }); }
private void AppendStatusMsg(string msg) { RichTextBoxStatusMsg.AppendText(msg); }