コード例 #1
0
        /// <summary>Creates a <c>div</c> tag for the given <paramref name="tag" />.
        /// Then sets the tag to be the container for a pager item (which, when clicked, rotates to its associated slide).</summary>
        /// <param name="tag">The tag whose content is being represented.</param>
        /// <param name="slide">The object from which to get the property.</param>
        /// <param name="resourceFile">The resource file from which to get localized resources.</param>
        /// <returns>The created pager item</returns>
        private Control CreatePagerItem(Tag tag, ITemplateable slide, string resourceFile)
        {
            Panel pagerItemWrapper = null;

            try
            {
                pagerItemWrapper          = this.CreateRotatorContainer(tag, slide, resourceFile);
                pagerItemWrapper.CssClass = Utility.AddCssClass(pagerItemWrapper.CssClass, "pager-item-" + slide.GetValue("INDEX"));
                return(pagerItemWrapper);
            }
            catch
            {
                if (pagerItemWrapper != null)
                {
                    pagerItemWrapper.Dispose();
                }

                throw;
            }
        }
コード例 #2
0
        /// <summary>Creates a <c>div</c> tag for the given <paramref name="tag" />.
        /// Then sets the tag to be the container for a pager item (which, when clicked, rotates to its associated slide).</summary>
        /// <param name="tag">The tag whose content is being represented.</param>
        /// <param name="slide">The object from which to get the property.</param>
        /// <param name="resourceFile">The resource file from which to get localized resources.</param>
        /// <returns>The created pager item</returns>
        private Control CreatePagerItem(Tag tag, ITemplateable slide, string resourceFile)
        {
            Panel pagerItemWrapper = null;
            try
            {
                pagerItemWrapper = this.CreateRotatorContainer(tag, slide, resourceFile);
                pagerItemWrapper.CssClass = Utility.AddCssClass(pagerItemWrapper.CssClass, "pager-item-" + slide.GetValue("INDEX"));
                return pagerItemWrapper;
            }
            catch
            {
                if (pagerItemWrapper != null)
                {
                    pagerItemWrapper.Dispose();
                }

                throw;
            }
        }