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 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); }
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); }