Beispiel #1
0
        } // Year

        // ----------------------------------------------------------------------
        public ITimePeriodCollection GetWeeks()
        {
            TimePeriodCollection weeks = new TimePeriodCollection();

            foreach (var week in Enumerable.Range(1, BroadcastCalendarTool.GetWeeksOfYear(year)))
            {
                weeks.Add(new BroadcastWeek(year, week));
            }
            return(weeks);
        } // GetWeeks
Beispiel #2
0
        }         // Year

        // ----------------------------------------------------------------------
        public ITimePeriodCollection GetWeeks()
        {
            TimePeriodCollection weeks = new TimePeriodCollection();
            int weekCount = BroadcastCalendarTool.GetWeeksOfYear(year);

            for (int week = 1; week <= weekCount; week++)
            {
                weeks.Add(new BroadcastWeek(year, week));
            }
            return(weeks);
        }         // GetWeeks