예제 #1
0
        private void AddHive(string name, bool select)
        {
            RegistryKeySnapshot item;

              item = new RegistryKeySnapshot(name);

              hivesListBox.Items.Add(item);

              if (select)
              {
            hivesListBox.SetItemChecked(hivesListBox.Items.Count - 1, true);
              }
        }
예제 #2
0
        private void AddHive(string name, bool select)
        {
            RegistryKeySnapshot item;

            item = new RegistryKeySnapshot(name);

            hivesListBox.Items.Add(item);

            if (select)
            {
                hivesListBox.SetItemChecked(hivesListBox.Items.Count - 1, true);
            }
        }
        private void AddKey(RegistryKeySnapshot key, TreeNodeCollection container)
        {
            TreeNode node;

              node = new TreeNode
             {
               Name = key.Name,
               Text = key.Name,
               ImageIndex = 0,
               Tag = key
             };

              if (key.SubKeys != null && key.SubKeys.Count != 0)
              {
            node.Nodes.Add(new TreeNode());
              }

              container.Add(node);
        }
예제 #4
0
        private void AddKey(RegistryKeySnapshot key, TreeNodeCollection container)
        {
            TreeNode node;

            node = new TreeNode
            {
                Name       = key.Name,
                Text       = key.Name,
                ImageIndex = 0,
                Tag        = key
            };

            if (key.SubKeys != null && key.SubKeys.Count != 0)
            {
                node.Nodes.Add(new TreeNode());
            }

            container.Add(node);
        }