/// <summary> /// clears the debugbox /// </summary> private void ClearDebuglog() { if (Debugbox.IsDisposed) { return; } if (Debugbox.InvokeRequired) { Debugbox.Invoke(new Action(() => { Debugbox.Clear(); })); } else { Debugbox.Clear(); } }
/// <summary> /// Append Message to the Debugbox /// </summary> /// <param name="Message"></param> private void LogDebugWrite(String Message, params object[] format) { //return; Message = String.Format(Message, format); if (!IsDisposed) { if (Debugbox.InvokeRequired) { Debugbox.Invoke(new Action(() => { Debugbox.AppendText(Message); })); } else { Debugbox.AppendText(Message); } } }