Пример #1
0
 /*
  * METHOD : writeToGroupChatTab()
  *
  * DESCRIPTION : Display message field text string to group chat text box
  * and relayed it to queue.
  *
  * PARAMETERS : STRING : messageText
  *
  * RETURNS    : N/A
  */
 public void writeToGroupChatTab(string messageText)
 {
     GroupChatTab.Focus();
     GroupChatTabTextBox.AppendText("You Say: " + messageText + "\n");
     packetBuffer = userNameTextBox.Text + "," + guiPacketBuffer.MessageType + "," + Environment.MachineName + "," + messageText + "," + guiPacketBuffer.RequestToChat;
     WriteToQueue(packetBuffer);
 }
Пример #2
0
 /*
  * METHOD : WriteToGroupChatBox()
  *
  * DESCRIPTION : Write incoming group chat message to the textbox in the
  * groupchatbox tab.
  * PARAMETERS : string : chatMessage
  *
  * RETURNS    : N/A
  */
 public void WriteToGroupChatBox(string chatMessage)
 {
     this.Dispatcher.Invoke(() =>
     {
         GroupChatTabTextBox.AppendText(chatMessage);
     });
 }
Пример #3
0
        /*
         * METHOD : connectionServerTabFormattingEvents()
         *
         * DESCRIPTION : A series of formating events for the chat tabs are triggerd
         * which update GUI for user status of connection.
         *
         * PARAMETERS :
         *
         * RETURNS    : N/A
         */
        public void connectionServerTabFormattingEvents()
        {
            ///Clear all chat text in message terminal
            PrivateChatTabTextBox.Clear();
            GroupChatTabTextBox.Clear();
            BroadcastTabTextBox.Clear();

            tabConnectionStatusOnline();
            ///Tab Formatting Colour fonts Events
            PrivateChatTab.Foreground   = Brushes.Black;
            GroupChatTab.Foreground     = Brushes.Black;
            BroadcastChatTab.Foreground = Brushes.Black;
        }