/// <summary> /// clears the chatbox. /// </summary> private void ClearChatlog() { if (Chatbox.IsDisposed) { return; } if (Chatbox.InvokeRequired) { Chatbox.Invoke(new Action(() => { Chatbox.Clear(); })); } else { Chatbox.Clear(); } }
/// <summary> /// clears the chatbox. /// </summary> private void ClearChatlog() { if (Chatbox.IsDisposed) { return; } if (Chatbox.InvokeRequired) { Chatbox.Invoke(new Action(() => { Chatbox.Clear(); })); } else { Chatbox.Clear(); } }