示例#1
0
        internal void OnBeforeUpdate(InternalEntity pollAnswer)
        {
            var handlers = Get <PollAnswerBeforeUpdateEventHandler>(BeforeUpdateEvent);

            if (handlers != null)
            {
                var args = new PollAnswerBeforeUpdateEventArgs(pollAnswer);
                handlers(args);
            }

            TEApi.Html.Events.OnBeforeUpdate(GetHtmlProperties(pollAnswer));
        }
示例#2
0
        internal void OnBeforeUpdate(InternalEntity pollAnswer)
        {
            var handlers = Get<PollAnswerBeforeUpdateEventHandler>(BeforeUpdateEvent);
            if (handlers != null)
            {
                var args = new PollAnswerBeforeUpdateEventArgs(pollAnswer);
                handlers(args);
            }

            TEApi.Html.Events.OnBeforeUpdate(GetHtmlProperties(pollAnswer));
        }