示例#1
0
        protected virtual void OnOpenChannel(OpenChannelEventArgs e)
        {
            if (!channels.Contains(e.Channel))
            {
                channels.Add(e.Channel);
                channels.Sort((x, y) => x.CompareTo(y));
            }

            if (OpenChannel != null)
            {
                OpenChannel(this, e);
            }
        }
示例#2
0
 void HandleOpenChannel(object sender, OpenChannelEventArgs e)
 {
     Application.Instance.AsyncInvoke(delegate
     {
         CreateSection(e.Channel.Server, e.Channel);
         Update();
         
         if (e.ShouldFocus)
             channelList.SelectedItem = e.Channel;
         
         var serverSection = GetServerSection(e.Channel.Server);
         serverSection.AddNotification(new NotificationMessage("Joined {0}", e.Channel.Name));
     });
 }
示例#3
0
 protected virtual void OnOpenChannel(OpenChannelEventArgs e)
 {
     if (!channels.Contains(e.Channel))
     {
         channels.Add(e.Channel);
         channels.Sort((x,y) => x.CompareTo(y));
     }
     
     if (OpenChannel != null)
         OpenChannel(this, e);
 }