Ejemplo n.º 1
0
        public RedDotNode AddChild(RedDotRef item)
        {
            var child = Children.Find(c => c.Item == item);

            if (child != null)
            {
                return(child);
            }

            var nodeItem = new RedDotNode(item)
            {
                Root   = Root,
                Parent = this
            };

            Children.Add(nodeItem);
            return(nodeItem);
        }
Ejemplo n.º 2
0
 public RedDotNode(RedDotRef item)
 {
     Item = item;
     Root = this;
 }