public UIElement(UIManager manager, IUIElement parent) { children = new List <IUIElement>(); this.parent = parent ?? manager; root = manager; parent.AddChild(this); }
public UIElement(UIManager manager) { children = new List <IUIElement>(); root = manager; parent = manager; parent.AddChild(this); }