예제 #1
0
        public GenericTreeNode <T> AddChild(T value, int i_nLevel)
        {
            var node = new GenericTreeNode <T>(value, i_nLevel)
            {
                Parent = this
            };

            _children.Add(node);
            return(node);
        }
예제 #2
0
 public bool RemoveChild(GenericTreeNode <T> node)
 {
     return(_children.Remove(node));
 }