protected virtual void OnControlAdded(ControlEventArgs e) { ControlEventHandler eh = (ControlEventHandler)(Events [ControlAddedEvent]); if (eh != null) eh (this, e); }
public virtual void Add(Control value) { if (value == null) { return; } items.Add(value); value.AssignParent(owner); owner.PerformLayout(); owner.OnControlAdded(new ControlEventArgs(value)); }