private void OnHierarchyAdded(HierarchyAddedEventArgs e)
        {
            EventHandler <HierarchyAddedEventArgs> handler = (EventHandler <HierarchyAddedEventArgs>)handlerList[hierarchyAddedEvent];

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void OnHierarchyAdded(HierarchyAddedEventArgs e)
        {
			EventHandler<HierarchyAddedEventArgs> handler = (EventHandler<HierarchyAddedEventArgs>)handlerList[hierarchyAddedEvent];
            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 3
0
 private void OnHierarchyAdded(object sender, HierarchyAddedEventArgs args)
 {
     ConfigurationTreeNode node = TreeNodeFactory.Create(args.UIHierarchy.RootNode);
     solutionTreeNode.Nodes.Add(node);
     hierarchyNames.Add(node.Text);
     solutionTreeNode.Expand();
     hierarchyDirtyMap[args.UIHierarchy.Id] = false;
     SetSelectedNode(node);
     SetSelectedHierarchy(node);
     EnableSaveOptions(true);
     args.UIHierarchy.Saved += new EventHandler<HierarchySavedEventArgs>(UIHierarchySaved);
 }