Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #3
0
 public void RemoveChild(IsContainable child)
 {
     this.children.Remove(child);
     child.Parent = null;
 }
Beispiel #4
0
 public void RemoveChild(IsContainable child)
 {
     this.children.Remove(child);
     child.Parent = null;
 }