Пример #1
0
 public void RemoveChannel(Channel.ChannelHeader header)
 {
     if (Channels.Any(x => x.Header == header))
     {
         Channels.RemoveAll(x => x.Header == header);
     }
 }
Пример #2
0
 public void AddChannel(Channel.ChannelHeader header)
 {
     if (Channels.All(x => x.Header != header))
     {
         Channels.Add(new Channel
         {
             Header = header
         });
     }
 }