Пример #1
0
 private void ChangeTopic(GuiMessageItem guiMessage)
 {
     if (InvokeRequired)
     {
         ChangeTopicCallback changeTopicCallback = ChangeTopic;
         Invoke(changeTopicCallback, new object[] { guiMessage });
     }
     else
     {
         topicDisplayLabel.Text = guiMessage.Message;
         var sb = new StringBuilder();
         sb.Append(guiMessage.Nick);
         sb.Append(" - ");
         sb.Append(guiMessage.TimeStamp);
         setByLabel.Text = sb.ToString();
     }
 }
Пример #2
0
 /// <summary>Formats and writes the text on an Chat Event to the GUI</summary>
 /// <param name="message"></param>
 public void OnChatTopicChanged(MessageEventArgs_341 message)
 {
     var guiMessage = new GuiMessageItem(message);
     ChangeTopic(guiMessage);
 }
Пример #3
0
 private void ChangeTopic(GuiMessageItem guiMessage)
 {
     if (InvokeRequired) {
         ChangeTopicCallback changeTopicCallback = ChangeTopic;
         Invoke(changeTopicCallback, new object[] {guiMessage});
     } else {
         topicDisplayLabel.Text = guiMessage.Message;
         var sb = new StringBuilder();
         sb.Append(guiMessage.Nick);
         sb.Append(" - ");
         sb.Append(guiMessage.TimeStamp);
         setByLabel.Text = sb.ToString();
     }
 }
Пример #4
0
        /// <summary>Formats and writes the text on an Chat Event to the GUI</summary>
        /// <param name="message"></param>
        public void OnChatTopicChanged(MessageEventArgs_341 message)
        {
            var guiMessage = new GuiMessageItem(message);

            ChangeTopic(guiMessage);
        }