Example #1
0
 public void AddMessage(string sender, string recipient, string message)
 {
     try
     {
         MessagesBox.Invoke(new Action(() =>
         {
             AppendTextExt(MessagesBox, sender + " -> " + recipient + " : ", Color.Red);
             MessagesBox.AppendText("\r\n");
             MessagesBox.AppendText(message);
             MessagesBox.AppendText("\r\n");
         }));
     }
     catch (Exception ex) { }
 }