Exemple #1
0
 private void SubscribeToHtmlChangeEvent()
 {
     this._changeEventProxy = INTERNAL_EventsHelper.AttachToDomEvents(
         "change",
         this._nativeComboBoxDomElement,
         (Action <object>) this.DomSelectionChanged);
 }
Exemple #2
0
                public void addEventListener(string eventName, Action <object> handler)
                {
                    HtmlEventProxy proxy = INTERNAL_EventsHelper.AttachToDomEvents(eventName, _domElementRef, handler);

                    if (_eventNameAndHandlerToHtmlEventProxy == null)
                    {
                        _eventNameAndHandlerToHtmlEventProxy = new Dictionary <Tuple <string, Action <object> >, HtmlEventProxy>();
                    }
                    _eventNameAndHandlerToHtmlEventProxy.Add(new Tuple <string, Action <object> >(eventName, handler), proxy);
                }
 /// <summary>
 /// factory nethod
 /// </summary>
 /// <returns></returns>
 public static HtmlEventWrapper Create(object htmlElement,string eventName,EventHandler handler)
 {
     HtmlEventWrapper wrapper = new HtmlEventWrapper();
     HtmlEventProxy proxy = new HtmlEventProxy(wrapper, handler);
 }