コード例 #1
0
 public TreeNodeRenderContainer()
 {
     //The root node is a special empty node to hold children
     _node = null;
     _isRootNode = true;
     _childrenNodes = new SortedList<string, TreeNodeRenderContainer>();
 }
コード例 #2
0
        public TreeNodeRenderContainer AddChildNode(string nodeText, string nodeID, TreeNodeContainer node)
        {
            //Add a child node
            TreeNodeRenderContainer renderNode = new TreeNodeRenderContainer(node);
            //Combine the node text and NodeID to sort the list alphabetically
            _childrenNodes.Add(nodeText + ":" + nodeID, renderNode);

            return renderNode;
        }