Exemplo n.º 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);
            }
        }
Exemplo n.º 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));
     });
 }
Exemplo n.º 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);
 }