protected virtual void OnGotFocus(EventArgs e) { EventHandler eh = (EventHandler)(Events [GotFocusEvent]); if (eh != null) eh (this, e); }
protected void InvokeGotFocus(Control toInvoke, EventArgs e) { if (toInvoke == null) { return; } toInvoke.OnGotFocus(e); }