Пример #1
0
        public void Expand(ITVNode node)
        {
            GKTreeNode treeNode = node as GKTreeNode;

            if (treeNode != null)
            {
                treeNode.Expanded = true;
            }
        }
Пример #2
0
        public ITVNode AddNode(ITVNode parent, string name, object tag)
        {
            var node = new GKTreeNode(name, tag);

            if (parent == null)
            {
                fRootNode.Children.Add(node);
            }
            else
            {
                ((GKTreeNode)parent).Children.Add(node);
            }
            return(node);
        }
Пример #3
0
        public object GetSelectedData()
        {
            GKTreeNode node = Control.SelectedItem as GKTreeNode;

            return((node == null) ? null : node.Tag);
        }