private void OnHierarchyRemoved(HierarchyRemovedEventArgs e)
        {
            EventHandler <HierarchyRemovedEventArgs> handler = (EventHandler <HierarchyRemovedEventArgs>)handlerList[hierarchyRemovedEvent];

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void OnHierarchyRemoved(HierarchyRemovedEventArgs e)
        {
			EventHandler<HierarchyRemovedEventArgs> handler = (EventHandler<HierarchyRemovedEventArgs>)handlerList[hierarchyRemovedEvent];
            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 3
0
 private void OnHierarchyRemoved(object sender, HierarchyRemovedEventArgs args)
 {
     ConfigurationTreeNode node = TreeNodeFactory.GetTreeNode(args.UIHierarchy.RootNode.Id);
     node.Remove();
     args.UIHierarchy.Saved -= new EventHandler<HierarchySavedEventArgs>(UIHierarchySaved);
     hierarchyDirtyMap.Remove(args.UIHierarchy.Id);
     hierarchyNames.Remove(node.Text);
     UpdateSaveStatus(args.UIHierarchy);
     if (solutionTreeNode.Nodes.Count == 0)
     {
         EnableSaveOptions(false);
     }
     ResetErrorList();
 }