Example #1
0
 void Display(string msg)
 {
     CheckForIllegalCrossThreadCalls = false;
     ChatLog.AppendText(msg + "\r\n");
     ChatLog.Select(ChatLog.Text.Length, 0);
     ChatLog.ScrollToCaret();
 }
Example #2
0
        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;
        }
Example #3
0
 private void AddToChatLogBox(string content)
 {
     Dispatcher.Invoke(() => ChatLog.AppendText(Environment.NewLine));
     Dispatcher.Invoke(() => ChatLog.AppendText(content));
     Dispatcher.Invoke(() => ChatLog.ScrollToEnd());
 }
Example #4
0
 public void ErrorMethod(string Error)
 {
     ChatLog.AppendText("[SYSTEM]: " + Error + "\r" + "\n");
     return;
 }