Example #1
0
        public BetterTreeNode <T> Add(string text)
        {
            var childTreeNode = this.collection_.Add(text);

            var childBetterTreeNode =
                new BetterTreeNode <T>(childTreeNode, childTreeNode.Nodes);

            childBetterTreeNode.Parent = this;

            this.absoluteChildren_.Add(childBetterTreeNode);
            return(childBetterTreeNode);
        }
Example #2
0
 public void Add(BetterTreeNode <T> node) => this.collection_.Add(node.impl_);