예제 #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);
 }