// LOG GUI LOW LEVEL private void writeTextBox(AbstractExtendedRichTexBox box, string text) { if (InvokeRequired) { BoxTextDelegate registerBoxTextDelegate = new BoxTextDelegate(writeTextBox); BeginInvoke(registerBoxTextDelegate, new object[] { box, text }); } else { box.BeginUpdate(); box.AppendText(text); box.AppendText("\r\n"); if (TesterFactory.Logger.InteractiveLogging) { box.SelectionStart = box.Text.Length; box.ScrollToCaret(); } box.EndUpdate(); box.Invalidate(); //if (TesterFactory.Logger.InteractiveLogging) //{ // Application.DoEvents(); //} } }