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(); } }
/// <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); }
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(); } }