public void SetLogText(string text) { if (this.txtLog.InvokeRequired) { SetTextLogCallback d = new SetTextLogCallback(SetLogText); this.Invoke(d, new object[] { text }); } else { this.txtLog.Text = text; } }
public void appendTextLog(string text) { if (this.textBoxLog.InvokeRequired) { SetTextLogCallback d = new SetTextLogCallback(appendTextLog); this.Invoke(d, new object[] { text }); } else { this.textBoxLog.AppendText( text); } }