예제 #1
0
        internal WebSharpHtmlEvent(WebSharpObject eventSource, string eventName)
        {
            Source    = eventSource;
            EventName = eventName;

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

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