/// <summary> /// Removes the specified CHN. /// </summary> /// <param name="chn">The CHN.</param> public void Remove(Channel chn) { if (OnChannelListChange != null) OnChannelListChange(); List.Remove( chn ); }
private Channel GetChannel(string name) { Channel chn = channels.GetChannelByName( name ); if ( chn == null ) { chn = new Channel( protocol, name); channels.Add( chn ); } return chn; }
/// <summary> /// Adds the specified CHN. /// </summary> /// <param name="chn">The CHN.</param> public void Add(Channel chn) { if (OnChannelListChange != null) OnChannelListChange(); List.Add( chn ); }