public Widget RemoveChild(Widget child) { if (!children.Contains(child)) { return this; } child.Parent = null; children.Remove(child); return this; }
public Widget AddChild(Widget child) { if (children.Contains(child)) { return this; } child.Parent = this; children.Add(child); return this; }