public void Delete()
        {
            var win = new DialogWindowView();

            if (win.ShowDialog() == true)
            {
                AppViewModel.Target.deleteReservation(CurrentReservationDto.ReservationsNr);
                ReservationDtos.Remove(CurrentReservationDto);

                Refresh();
            }
        }
 public void FilterActive()
 {
     if (isFiltered)
     {
         isFiltered = false;
         Refresh();
     }
     else
     {
         ReservationDtos = new List <ReservationDto>(ReservationDtos.Where(p => p.Bis > DateTime.Today).ToList <ReservationDto>());
         isFiltered      = true;
     }
     SortingOnPropertyChanged();
 }
        public void SortingByKunde()
        {
            ButtonStateVon         = ButtonState.Inactive;
            ButtonStateBis         = ButtonState.Inactive;
            ButtonStateAuto        = ButtonState.Inactive;
            ButtonStateReservation = ButtonState.Inactive;

            switch (ButtonStateKunde)
            {
            case ButtonState.Inactive:
            case ButtonState.Descending:
                ButtonStateKunde = ButtonState.Ascending;
                ReservationDtos  = new List <ReservationDto>(ReservationDtos.OrderBy(k => k.Kunde.Nachname));
                break;

            case ButtonState.Ascending:
                ButtonStateKunde = ButtonState.Descending;
                ReservationDtos  = new List <ReservationDto>(ReservationDtos.OrderByDescending(k => k.Kunde.Nachname));
                break;
            }
            SortingOnPropertyChanged();
        }