Esempio n. 1
0
        protected virtual void Page_Load(object sender, EventArgs e)
        {
            var monthsByYearKeys = ArchiveCore.MonthsByYear.Keys;

            if (monthsByYearKeys.Any())
            {
                Years.DataSource = monthsByYearKeys;
                Years.DataBind();
                PanelArchive.Visible = true;
            }
            else
            {
                PanelArchive.Visible = false;
            }
        }
Esempio n. 2
0
        protected virtual void Page_Load(object sender, EventArgs e)
        {
            ExpandMonthsOnLoad = true;

            m_entriesByMonthAndYear = new Dictionary <int, List <EntryItem> >();

            if (CurrentBlog != null)
            {
                m_startedDate = CurrentBlog.InnerItem.Statistics.Created;
            }

            LoadEntries();
            if (Years != null)
            {
                Years.DataSource = GetYears();
                Years.DataBind();
            }
        }