示例#1
0
        //PopulateDaysDropDownList
        private void PopulateDaysDropDownList()
        {
            var DayRange = GeneralPurpose.IntRange(1, 7);

            ViewBag.DayOfWeek = new SelectList(DayRange);
        }
示例#2
0
        private void PopulateMinutesDropDownList(int minMinute = 0, int maxMinute = 59)
        {
            var MinuteRange = GeneralPurpose.IntRange(minMinute, maxMinute);

            ViewBag.StartingMinute = new SelectList(MinuteRange);
        }
示例#3
0
        private void PopulateDurationDropDownList(int minMinute = 0, int maxMinute = 59)
        {
            var MinuteRange = GeneralPurpose.IntRange(minMinute, maxMinute);

            ViewBag.DurationMinutes = new SelectList(MinuteRange);
        }
示例#4
0
        private void PopulateHoursDropDownList(int minHour, int maxHour)
        {
            var HourRange = GeneralPurpose.IntRange(minHour, maxHour);

            ViewBag.StartingHour = new SelectList(HourRange);
        }