public static void PopulateRepositoryClassSelector(IDLClassSelector classSelector, Repository repository) { TreeNodeCollection treeNodes = classSelector.getTreeView().Nodes; foreach (Package model in repository.Models) { TreeNode newNode = new TreeNode(model.Name); newNode.Checked = true; newNode.Expand(); newNode.Tag = model.Name; treeNodes.Add(newNode); foreach (Package package in model.Packages) { PopulateClassSelector(newNode, package); } } // Disble because feature is not fully implemeted yet //classSelector.getTreeView().AfterExpand += new TreeViewEventHandler(ClassSelector_TreeViewAfterExpand); }
public static void PopulateClassSelector(IDLClassSelector classSelector, Repository repository) { TreeNodeCollection treeNodes = classSelector.getTreeView().Nodes; foreach (Package model in repository.Models) { TreeNode newNode = new TreeNode(model.Name); newNode.Checked = true; newNode.Expand(); treeNodes.Add(newNode); foreach (Package package in model.Packages) { PopulateClassSelector(newNode, package); } } }