public void AttachEvent(UIEventName eventName, HtmlEventHandler handler) { switch (eventName) { case UIEventName.MouseDown: { this.evhMouseDown += handler; } break; case UIEventName.MouseUp: { this.evhMouseUp += handler; } break; } }