/// <summary> /// Populates the treeview with the elements from the repository /// </summary> public void Populate() { IEARepository repository = EAFacade.EA.Repository; foreach (IEAPackage package in repository.GetAllDecisionViewPackages()) { //Skip history package if (package.Stereotype.Equals(EAConstants.ChronologicalStereoType)) { continue; } TreeNode node = AddPackageNode(new TreeNode(), package); node.Expand(); _tv.Nodes.Add(node); } if (_decision) { _tv.ExpandAll(); } }