예제 #1
0
 protected void ircClient_ChannelListReceived(object sender, IrcChannelListReceivedEventArgs e)
 {
     this.allChannels.Clear();
     foreach (var channelInfo in e.Channels)
     {
         BindableChannelInfo info = new BindableChannelInfo()
         {
             Name = channelInfo.Name,
             VisibleUsersCount = channelInfo.VisibleUsersCount,
             Topic             = channelInfo.Topic
         };
         this.allChannels.Add(info);
         if (Regex.IsMatch(channelInfo.Name, this.Pattern, RegexOptions.Compiled))
         {
             this.Channels.Add(info);
         }
     }
 }
예제 #2
0
 protected void ircClient_ChannelListReceived(object sender, IrcChannelListReceivedEventArgs e)
 {
     this.allChannels.Clear();
       foreach (var channelInfo in e.Channels)
       {
     BindableChannelInfo info = new BindableChannelInfo()
     {
       Name = channelInfo.Name,
       VisibleUsersCount = channelInfo.VisibleUsersCount,
       Topic = channelInfo.Topic
     };
     this.allChannels.Add(info);
     if (Regex.IsMatch(channelInfo.Name, this.Pattern, RegexOptions.Compiled))
     {
       this.Channels.Add(info);
     }
       }
 }