private void DisplayMonthChanged(MonthChangedEventArgs e)
 {
     var vm = DataContext as StudentsVM;
     if (vm != null)
     {
         vm.MonthChanged(e.NewDisplayStartDate);
     }
 }
예제 #2
0
        private void UpdateMonth(int MonthsToAdd)
        {
            MonthChangedEventArgs ev = new MonthChangedEventArgs();

            ev.OldDisplayStartDate = _DisplayStartDate;
            this.DisplayStartDate  = _DisplayStartDate.AddMonths(MonthsToAdd);
            ev.NewDisplayStartDate = _DisplayStartDate;
            if (OnMonthChanged != null)
            {
                OnMonthChanged(ev);
            }
        }
예제 #3
0
 private void DisplayMonthChanged(MonthChangedEventArgs e)
 {
     SetAppointments();
 }
 private void UpdateMonth(int monthsToAdd)
 {
     var ev = new MonthChangedEventArgs {OldDisplayStartDate = _DisplayStartDate};
     DisplayStartDate = _DisplayStartDate.AddMonths(monthsToAdd);
     ev.NewDisplayStartDate = DisplayStartDate;
     if (DisplayMonthChanged != null) {
         DisplayMonthChanged(ev);
     }
     BuildCalendarUi();
 }
 private void UpdateMonth(int MonthsToAdd)
 {
     MonthChangedEventArgs ev = new MonthChangedEventArgs();
     ev.OldDisplayStartDate = _DisplayStartDate;
     this.DisplayStartDate = _DisplayStartDate.AddMonths(MonthsToAdd);
     ev.NewDisplayStartDate = _DisplayStartDate;
     if (DisplayMonthChanged != null) {
     DisplayMonthChanged(ev);
     }
 }