public void RemoveChild(UIObject child) { children.Remove(child); child.Dispose(); }
public void AddChild(UIObject child) { child.parent = this; children.Add(child); }