internal string OnRender(InternalEntity poll, string propertyName, string propertyHtml, string target)
        {
            var handlers = Get <PollRenderEventHandler>(RenderEvent);

            if (handlers != null)
            {
                var args = new PollRenderEventArgs(poll, propertyName, propertyHtml, target);
                handlers(args);
                propertyHtml = args.RenderedHtml;
            }

            return(TEApi.Html.Events.OnRender(propertyName, propertyHtml, target));
        }
Пример #2
0
        internal string OnRender(InternalEntity poll, string propertyName, string propertyHtml, string target)
        {
            var handlers = Get<PollRenderEventHandler>(RenderEvent);
            if (handlers != null)
            {
                var args = new PollRenderEventArgs(poll, propertyName, propertyHtml, target);
                handlers(args);
                propertyHtml = args.RenderedHtml;
            }

            return TEApi.Html.Events.OnRender(propertyName, propertyHtml, target);
        }