예제 #1
0
        public void LoadReview()
        {
            var list = NewsEntity.Models.Article.GetByCategory(5, 0, 1);

            if (list.Count > 0)
            {
                this.theReviewHydrology = list.First();
            }

            list = NewsEntity.Models.Article.GetByCategory(6, 0, 1);
            if (list.Count > 0)
            {
                this.theReviewOperative = list.First();
            }
            this.theReviewGeospace = NewsEntity.Models.GeospaceReview.GetByLast();
        }
예제 #2
0
 public NewsMain(bool isLoadCategory = true, string S = "")
 {
     if (isLoadCategory == true)
     {
         this.theArticleOfKhabarovsk = NewsEntity.Models.Article.GetDisplayed(1);
         this.theArticleOfRegion     = NewsEntity.Models.Article.GetDisplayed(2);
         this.theArticleOfRussia     = NewsEntity.Models.Article.GetDisplayed(3);
         this.theArticleOfWorld      = NewsEntity.Models.Article.GetDisplayed(4);
         this.theArticleOfOther      = NewsEntity.Models.Article.GetDisplayed(999);
     }
     if (S != "")
     {
         this.S = S;
         this.theSearchResult = NewsEntity.Models.Article.GetBySearch(S);
     }
     this.theReviewHydrology = null;
     this.theReviewOperative = null;
 }