public void Page_Init(Object o, EventArgs e)
        {
            ClimbFind.Model.Objects.MessageBoard messageBoard = cfController.GetMessageBoard(Article.MessageBoardID.Value);
            MessageBoardUC.RenderMessageBoard(messageBoard);

            ArticlePhotoSets = new PhotoSetDA().Get(Article.ID);

            //-- Absolutely TERRIBLE Hack
            foreach (PhotoSet set in ArticlePhotoSets)
            {
                set.ParentDirectory = Article.ContentDirectory;
            }

            Articles = new FeatureArticleDA().GetAll().OrderBy(c => c.Date).ToList();
            Articles.Reverse();
        }
Exemple #2
0
        //public List<OutdoorCrag> Crags { get { return ; } }

        protected void Page_Init(Object s, EventArgs e)
        {
            place = cfController.GetOutdoorPlace(Crag.PlaceID);
            MessageBoardUC.RenderMessageBoard(cfController.GetMessageBoard(Crag.MessageBoardID));

            ////-- Get contributing users
            if (Crag.DescriptionImageFile1ByUserID != null)
            {
                descriptionImageFile1ByUser = CFDataCache.GetClimberFromCache(Crag.DescriptionImageFile1ByUserID.Value);
            }
            if (Crag.DescriptionImageFile2ByUserID != null)
            {
                descriptionImageFile2ByUser = CFDataCache.GetClimberFromCache(Crag.DescriptionImageFile2ByUserID.Value);
            }
            if (Crag.DescriptionImageFile3ByUserID != null)
            {
                descriptionImageFile3ByUser = CFDataCache.GetClimberFromCache(Crag.DescriptionImageFile3ByUserID.Value);
            }

            OtherCrags = (from c in cfController.GetCragsAtPlace(place.ID) where c.ID != Crag.ID select c).ToList();
        }
Exemple #3
0
 protected void Page_Init(Object s, EventArgs e)
 {
     MessageBoardUC.RenderMessageBoard(cfController.GetMessageBoard(Media.MessageBoardID));
 }