CodeTV.ChannelFolder.Add C# (CSharp) Method

Add() public method

public Add ( Channel channel ) : void
channel Channel
return void
        public void Add(Channel channel)
        {
            channel.Parent = this;
            this.channelList.Add(channel);
        }

Usage Example

コード例 #1
0
ファイル: PanelChannel.cs プロジェクト: dgis/CodeTV
 internal void AddChannelToFavorite(ChannelFolder channelFolder, Channel[] channels)
 {
     TreeNode parentTreeNode = channelFolder.Tag as TreeNode;
     TreeNodeCollection parentTreeNodeCollection = (parentTreeNode == null ? this.treeViewChannel.Nodes : parentTreeNode.Nodes);
     foreach (Channel channel in channels)
     {
         channelFolder.Add(channel);
         parentTreeNodeCollection.Add(MakeTreeNodeFromChannel(channel));
     }
 }
All Usage Examples Of CodeTV.ChannelFolder::Add