コード例 #1
0
        /// <summary>
        /// Initializes the specified handler as a page. This method is called right after the handler is created and can be used to add controls to the Page.
        /// </summary>
        /// <param name="handler">The handler.</param>
        /// <exception cref="System.ArgumentNullException">handler</exception>
        public void Initialize(IHttpHandler handler)
        {
            if (handler == null)
                throw new ArgumentNullException("handler");

            Page page = handler.GetPageHandler();

            if (page != null)
            {
                this.Initialize(page);
            }
        }
コード例 #2
0
        /// <summary>
        /// Initializes the specified handler as a page. This method is called right after the handler is created and can be used to add controls to the Page.
        /// </summary>
        /// <param name="handler">The handler.</param>
        /// <exception cref="System.ArgumentNullException">handler</exception>
        public void Initialize(IHttpHandler handler)
        {
            if (handler == null)
            {
                throw new ArgumentNullException("handler");
            }

            Page page = handler.GetPageHandler();

            if (page != null)
            {
                this.Initialize(page);
            }
        }
コード例 #3
0
        private static Page GetTopMostPageFromHandler(IHttpHandler httpHandler)
        {
            var page = httpHandler.GetPageHandler();

            if (page != null)
            {
                var topMostPage = page;

                while (topMostPage.PreviousPage != null)
                {
                    topMostPage = topMostPage.PreviousPage;
                }

                return(topMostPage);
            }

            return(null);
        }
コード例 #4
0
ファイル: ResourceHelper.cs プロジェクト: RifasRazick/feather
        private static Page GetTopMostPageFromHandler(IHttpHandler httpHandler)
        {
            var page = httpHandler.GetPageHandler();

            if (page != null)
            {
                var topMostPage = page;

                while (topMostPage.PreviousPage != null)
                {
                    topMostPage = topMostPage.PreviousPage;
                }

                return topMostPage;
            }

            return null;
        }