예제 #1
0
        public void AddChild(IsContainable child)
        {
            if (child.Parent == this.self)
            {
                return;
            }

            if (child.Parent != null)
            {
                child.Parent.RemoveChild(child);
            }

            this.children.Add(child);
            child.Parent = this.self;
        }
예제 #2
0
        public void AddChild(IsContainable child)
        {
            if (child.Parent == this.self)
            {
                return;
            }

            if (child.Parent != null)
            {
                child.Parent.RemoveChild(child);
            }

            this.children.Add(child);
            child.Parent = this.self;
        }
예제 #3
0
 public void RemoveChild(IsContainable child)
 {
     this.children.Remove(child);
     child.Parent = null;
 }
예제 #4
0
 public void RemoveChild(IsContainable child)
 {
     this.children.Remove(child);
     child.Parent = null;
 }