private void DisplayMonthChanged(MonthChangedEventArgs e) { var vm = DataContext as StudentsVM; if (vm != null) { vm.MonthChanged(e.NewDisplayStartDate); } }
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); } }
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); } }