Пример #1
0
        private void LoadAppointments(DateSpan dateSpan)
        {
            this.Appointments.Clear();

            this.IsLoading = true;

            this.Appointments.AddRange(ScheduleViewRepository.GetSqlAppointmentsByRange(dateSpan.Start, dateSpan.End));

            this.IsLoading = false;
        }
Пример #2
0
        private void GenerateAppointments(DateSpan dateSpan)
        {
            if (!this.isInitialLoad)
            {
                ScheduleViewRepository.SaveData(() => this.LoadAppointments(dateSpan));
            }
            else
            {
                LoadAppointments(dateSpan);

                isInitialLoad = false;
            }
        }
Пример #3
0
 private void OnSaveExecuted(object param)
 {
     ScheduleViewRepository.SaveData(null);
 }