Пример #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);
            });
        }