Пример #1
0
        public void FillSchedule()
        {
            DateTime loopDate = new DateTime(CurrentDate.Ticks);

            for (int i = 0; i < WeekSlots.Length; i++)
            {
                WeekSlots[i]            = new ScheduleSlotViewModel();
                WeekSlots[i].Inspection = _inspectionRepository.GetInspectionsByDate(loopDate.Date, employeeid);
                WeekSlots[i].Date       = loopDate;
                loopDate = loopDate.AddDays(1);
            }
            RaisePropertyChanged(() => WeekSlots);
        }