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); } } }