protected virtual void OnDeactivate(EventArgs e) { EventHandler eh = (EventHandler)(Events [DeactivateEvent]); if (eh != null) eh (this, e); }