public virtual void RemoveChild(Control control) { control.Parent = null; _children.Remove(control); if (control.IsRendered) { control.RemoveRender(); } }
public virtual void AddChild(Control control) { control.Parent = this; control.setClientId(); if (IsRendered) { Log.log(".control.AddChild.render", control.ClientId); control.Render(); } _children.Add(control); }