Beispiel #1
0
 public ScheduleNameViewModel()
 {
     foreach (var schedule in ScheduleDao.FindAll())
     {
         _takenIds.Add(schedule.Id);
     }
 }
        public void FindLastSchedule()
        {
            var schedules = ScheduleDao.FindAll();

            foreach (var schedule in schedules)
            {
                if (schedule.LastOpened)
                {
                    LastOpenedSchedule = schedule;
                    InitRemainigSessions();
                    return;
                }
            }
            LastOpenedSchedule = null;
        }
 public OpenScheduleViewModel()
 {
     ScheduleDao.FindAll().ForEach(schedule => Schedules.Add(schedule));
 }