protected override void OnFirstLoad()
        {
            base.OnFirstLoad();
            if (!DesignMode)
            {
                List <Year> listYears = UCYearMonthRangeSelector.GetYearRange(ShowMoreDate ? DateTime.Now.Year + 50 : 0);
                DSCommon.BindImageComboBox(cmbBeginYear, listYears, x => true, "description", "year");

                List <Month> listMonths = UCYearMonthRangeSelector.GetMonthRange();
                DSCommon.BindImageComboBox(cmbBeginMonth, listMonths, m => true, "description", "month");

                if (DefaultTime != default(DateTime))
                {
                    DateTime = DefaultTime;
                }
                else
                {
                    DateTime = DateTime.Now;
                }
            }
        }
Exemple #2
0
        private void FillYear()
        {
            List <Year> listYears = UCYearMonthRangeSelector.GetYearRange(_maxYear, _minYear);

            DSCommon.BindImageComboBox(cmbYear, listYears, x => true, "description", "year");
        }