/// <summary> /// Attach an event handler to the element. /// </summary> /// <param name="name">The HTML script event name.</param> /// <param name="handler">The event handler.</param> public override void AttachEvent(string name, EventHandler <HtmlEventArgs> handler) { EventAttachment <EventHandler <HtmlEventArgs> > attachment = new EventAttachment <EventHandler <HtmlEventArgs> > { EventName = name, Handler = handler }; _htmlEvents.Add(attachment); }
/// <summary> /// Attach an event handler. /// </summary> /// <param name="name">The event name.</param> /// <param name="handler">The event handler.</param> public override void AttachEvent(string name, EventHandler handler) { EventAttachment <EventHandler> attachment = new EventAttachment <EventHandler> { EventName = name, Handler = handler }; _events.Add(attachment); }