void Display(string msg) { CheckForIllegalCrossThreadCalls = false; ChatLog.AppendText(msg + "\r\n"); ChatLog.Select(ChatLog.Text.Length, 0); ChatLog.ScrollToCaret(); }
public void GlobalMsgMethod(Dictionary <string, string> Args) { string Line, Sender, Msg; if (!Args.TryGetValue("SENDER", out Sender) || !Args.TryGetValue("MSG", out Msg)) { return; } Line = "[" + Sender + "]: " + Msg; ChatLog.AppendText(Line + "\r" + "\n"); return; }
private void AddToChatLogBox(string content) { Dispatcher.Invoke(() => ChatLog.AppendText(Environment.NewLine)); Dispatcher.Invoke(() => ChatLog.AppendText(content)); Dispatcher.Invoke(() => ChatLog.ScrollToEnd()); }
public void ErrorMethod(string Error) { ChatLog.AppendText("[SYSTEM]: " + Error + "\r" + "\n"); return; }