public TreeNodeRenderContainer() { //The root node is a special empty node to hold children _node = null; _isRootNode = true; _childrenNodes = new SortedList<string, TreeNodeRenderContainer>(); }
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; }