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