Beispiel #1
0
        private void ChannelListReceived(object sender, ChannelListEventArgs e)
        {
            availableChannels.Invoke((ThreadStart)delegate
            {
                m_channels = e;

                foreach (string channel in e.Channels)
                {
                    availableChannels.Items.Add(channel);
                }
            });
        }
Beispiel #2
0
 void ChannelListReceived(object sender, ChannelListEventArgs e)
 {
     List<ChatNode> nodesToAdd = new List<ChatNode>();
     nodesToAdd.Add(new ChatNode("Available Channels:", CssClasses.ChannelListHeader));
     foreach (string s in e.Channels)
     {
         nodesToAdd.Add(ChatNode.NewLine);
         nodesToAdd.Add(new ChatNode(" - ", CssClasses.ChannelBullet));
         nodesToAdd.Add(new ChatNode(s, CssClasses.ChannelListItem));
     }
     chat.AddChat(nodesToAdd);
 }
 void Client_ChannelListReceived(object sender, ChannelListEventArgs e)
 {
     if (__channelListReceived != null)
     {
         __channelListReceived.Call(_host.ClientHost, ConvObj(e));
     }
 }
Beispiel #4
0
 void ChannelListReceived(object sender, ChannelListEventArgs e)
 {
     PostEvent(new ClientEvent { EventData = e, EventType = ClientEventType.ChannelListReceived });
 }