예제 #1
0
        public void LoadData(string rootPath, string blogName, string site, string parameter, string friendlyUrl)
        {
            this.friendlyUrl = friendlyUrl;

            currentPage = new BlogPage();
            firstPage   = new BlogPage();

            int pageNo;

            if (!int.TryParse(parameter, out pageNo))
            {
                pageNo = 1;
            }

            currentPage.ReadPage(rootPath, blogName, site, pageNo);
            firstPage.ReadPage(rootPath, blogName, site, 1);

            lastPage = pageNo == Math.Ceiling((decimal)currentPage.TotalEntries / currentPage.entriesPerPage);
        }