Beispiel #1
0
        public ScheduleController(ManagedTimer timer, int items)
        {
            Timer = timer;

            Schedule       = new Schedule();
            Schedule.Items = new List <ScheduleItem>();

            for (var i = 1; i <= items; i++)
            {
                var name = GetDefaultItemName(GetNextNewItemId());
                Schedule.Items.Add(new ScheduleItem(name));
            }
        }
Beispiel #2
0
 public ScheduleController(ManagedTimer timer) : this(timer, 1)
 {
 }