/// <summary> /// Removes a child node from this node /// </summary> /// <param name="nodes">Node to remove</param> /// <remarks>This is not a synchronous function. Children will be removed on the next oppurtunity.</remarks> public void Remove(Node child) { remove_children.Add(child); //child.owner = null; }
/// <summary> /// Adds a child node to this node /// </summary> /// <param name="child">Child to remove</param> /// <remarks>This is not a synchronous function. Children will be added on the next oppurtunity.</remarks> public void Add(Node child) { var rend = child as IRenderable; if (!child.graphics_pending && rend != null) { child.graphics_pending = true; owner.Owner.GraphicInvoke(new Action(rend.InitializeGraphics)); } add_children.Add(child); child.owner = owner; }