Beispiel #1
0
 private void Message_Received_Event(ChatMessage message)
 {
     if(this.rtbChat.InvokeRequired)
     {
         this.rtbChat.Invoke(new ts_Message_Recieved_Event(this.Message_Received_Event), message);
     }
     else
     {
         this.rtbChat.AppendText(message.getName() + ": " + message.getMessage() + Environment.NewLine);
     }
 }
Beispiel #2
0
 private void Message_Sent_Event(ChatMessage message)
 {
     this.rtbChat.AppendText(message.getName() + ": " + message.getMessage() + Environment.NewLine);
     tbMessage.Text = placeholder;
 }
Beispiel #3
0
 private void printMessage(ChatMessage message)
 {
     Console.WriteLine(message.getName() + " " + message.getMessage());
 }