Esempio n. 1
0
        internal WebSharpHtmlEvent(WebSharpObject eventSource, string eventName)
        {
            Source    = eventSource;
            EventName = eventName;

            EventCallbackFunction = (async(evt) =>
            {
                Invoke(evt);
                return(null);
            });
        }
Esempio n. 2
0
        internal WebSharpEvent(WebSharpObject eventSource, string eventName)
        {
            Source    = eventSource;
            EventName = eventName;

            EventCallbackFunction = (async(evt) =>
            {
                Invoke(new object[] { EventArgs.Empty });
                return(null);
            });
        }