示例#1
0
 public virtual void RemoveChild(Control control)
 {
     control.Parent = null;
     _children.Remove(control);
     if (control.IsRendered)
     {
         control.RemoveRender();
     }
 }
示例#2
0
 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);
 }