public void UpdateNode(TreeNodeState old, UnitTreeNode node)
 {
     if (old.IsVisible)
         node.EnsureVisible();
     if (old.IsExpanded)
         node.Expand();
 }
Example #2
0
		public void UpdateNode(TreeNodeState old, UnitTreeNode node)
		{
			if (old.IsVisible)
				node.EnsureVisible();
			if (old.IsExpanded)
				node.Expand();
            if (old.IsSelected)
                this.typeTree.SelectedNode = node;
		}