Beispiel #1
0
 /*
  * METHOD : writeToPrivateChatTab()
  *
  * DESCRIPTION : Display message field text string to private chat text box
  * and relayed it to queue.
  * PARAMETERS : STRING : messageText
  *
  * RETURNS    : N/A
  */
 public void writeToPrivateChatTab(string messageText)
 {
     PrivateChatTab.Focus();
     PrivateChatTabTextBox.AppendText("You Say: " + messageText + "\n"); //Allows text to be displayed multiline
     packetBuffer = userNameTextBox.Text + "," + guiPacketBuffer.MessageType + "," + Environment.MachineName + "," + messageText + "," + guiPacketBuffer.Alias;
     WriteToQueue(packetBuffer);                                         //write to queue
 }
Beispiel #2
0
 /*
  * METHOD : WriteToPrivateChatBox()
  *
  * DESCRIPTION : Append the incoming user chat to the
  * Private chat box.
  * PARAMETERS : string : chatMessage
  *
  * RETURNS    : N/A
  */
 public void WriteToPrivateChatBox(string chatMessage)
 {
     this.Dispatcher.Invoke(() =>
     {
         PrivateChatTabTextBox.AppendText(chatMessage);
     });
 }