Exemple #1
0
        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);
            });
        }
Exemple #2
0
 private void AppendStatusMsg(string msg)
 {
     RichTextBoxStatusMsg.AppendText(msg);
 }