protected virtual void OnClick(EventArgs e) { EventHandler handler = (EventHandler)this.Events[EventClick]; if (handler != null) { handler(this, e); } }