public void Handle(TerminSavedEvent message) { DateTime von = DateTools.GetDateWithCustomHour(DatumVon, 00, 00, 0); DateTime bis = DateTools.GetDateWithCustomHour(DatumBis, 23, 59, 00); LoadTermine(von, bis); }
private void RefreshTermine() { DateTime von = DateTools.GetDateWithCustomHour(DatumVon, 00, 00, 0); DateTime bis = DateTools.GetDateWithCustomHour(DatumBis, 23, 59, 00); LoadTermine(von, bis); }
public TermineListeViewModel(IEventAggregator Events) { _events = Events; Events.Subscribe(this); db = new SteinbachEntities(); ActionLookUp = new ObservableCollection <AuswahlEintraege>(db.AuswahlEintraege.Where(t => t.Gruppe == "TerminAktion")); TermineIsChecked = true; int back = ConfigEntry <int> .GetConfigEntry("AppointmentListLookback", "0", "Rückblick Termine in Tagen"); int ahead = ConfigEntry <int> .GetConfigEntry("AppointmentListLookahead", "14", "Vorschau Termine in Tagen"); DatumVon = DateTime.Now.AddDays(back); DatumBis = DateTime.Now.AddDays(ahead); DateTime von = DateTools.GetDateWithCustomHour(DatumVon, 00, 00, 0); DateTime bis = DateTools.GetDateWithCustomHour(DatumBis, 23, 59, 00); LoadTermine(von, bis); // LoadTermine(); }