예제 #1
0
        private void LoadRdtFile(string filename)
        {
            Plugcoder.Codeplug codeplug = new Plugcoder.Codeplug(filename);

            for (int i = 0; i < codeplug.Zones.List.Count; i++)
            {
                TreeNode zoneNode = treeViewChannels.Nodes.Add(codeplug.Zones.List[i].Name);

                for (int j = 0; j < codeplug.Zones.List[i].ChannelIndexList.Count; j++)
                {
                    int      channelIndex = codeplug.Zones.List[i].ChannelIndexList[j];
                    Channel  channel      = codeplug.Channels.Items[channelIndex];
                    TreeNode channelNode  = zoneNode.Nodes.Add(channelIndex.ToString(), channel.Name);
                }
            }
        }
예제 #2
0
 private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
 {
     Plugcoder.Codeplug codeplug = new Plugcoder.Codeplug(openFileDialog1.FileName);