コード例 #1
0
 private void GetReservations()
 {
     if (_clientIsChecked && _dateIsChecked)
     {
         this.Reservations = new ObservableCollection <Reservation>(_reservationManager.FindAllReservationsOnDateAndClient(PickedTime, CurrentClient));
     }
     else if (_clientIsChecked && !_dateIsChecked)
     {
         this.Reservations = new ObservableCollection <Reservation>(_reservationManager.FindAllReservationsOnClient(_currentClient));
     }
     else if (!_clientIsChecked && _dateIsChecked)
     {
         this.Reservations = new ObservableCollection <Reservation>(_reservationManager.FindAllReservationsOnDate(_pickedTime));
     }
     else if (!_clientIsChecked && !_dateIsChecked)
     {
         this.Reservations = new ObservableCollection <Reservation>(_reservationManager.FindAllReservations());
     }
 }