Exemple #1
0
        private void InitGUIElements()
        {
            Years = new List <int>();
            for (int i = 2000; i <= DateTime.Now.Year; i++)
            {
                Years.Add(i);
            }

            Months = new List <string>();
            string[] monthsArray = new DateTimeFormatInfo().MonthNames;
            for (int i = 0; i < monthsArray.Count(); i++)
            {
                Months.Add(monthsArray[i]);
            }

            IsHourlyChecked  = true;
            IsDailyChecked   = false;
            IsMonthlyChecked = false;
            SelectedDate     = DateTime.Now;
        }