CodeTV.PanelChannelProperties.MakeCopyOfSelectedChannel C# (CSharp) Method

MakeCopyOfSelectedChannel() private method

private MakeCopyOfSelectedChannel ( ) : void
return void
        private void MakeCopyOfSelectedChannel()
        {
            // Make a new copy in the propertyGridChannel in order to be eventually reapply
            Hashtable newPropertyChannels = new Hashtable();
            foreach (TreeNode tn in this.MainForm.panelChannel.currentPropertyChannels.Values)
                newPropertyChannels[(tn.Tag as Channel).MakeCopy()] = tn;
            this.MainForm.panelChannel.currentPropertyChannels = newPropertyChannels;

            this.propertyGridChannel.SelectedObjects = (new ArrayList(this.MainForm.panelChannel.currentPropertyChannels.Keys)).ToArray();
        }