Пример #1
0
 private void UpdateTopic(string topic)
 {
     if (this.InvokeRequired)
     {
         ChangeTopicDelegate c = new ChangeTopicDelegate(UpdateTopic);
         this.Invoke(c, new object[] { topic });
     }
     else
     {
         channelTopic = topic;
         textTopic.ClearTextWindow();
         //get the topic color
         textTopic.AppendText(topic, 1);
     }
 }
Пример #2
0
 private void UpdateTopic(string topic)
 {
     if (this.InvokeRequired)
     {
         ChangeTopicDelegate c = new ChangeTopicDelegate(UpdateTopic);
         this.Invoke(c, new object[] { topic });
     }
     else
     {
         channelTopic = topic;
         textTopic.ClearTextWindow();
         //get the topic color
         textTopic.AppendText(topic, 1);
     }
 }
Пример #3
0
 private void UpdateTopic(string topic)
 {
     if (this.InvokeRequired)
     {
         ChangeTopicDelegate c = new ChangeTopicDelegate(UpdateTopic);
         this.Invoke(c, new object[] { topic });
     }
     else
     {
         channelTopic = topic;
         textTopic.ClearTextWindow();
         string msgt = FormMain.Instance.GetMessageFormat("Channel Topic Text");
         msgt = msgt.Replace("$channel", this.TabCaption);
         msgt = msgt.Replace("$topic", topic);
         textTopic.AppendText(msgt, 1);
     }
 }