Beispiel #1
0
 public SearchReservation()
 {
     InitializeComponent();
     try
     {
         cmbCustomer.ItemsSource     = vipServicesManager.GetAllCustomers();
         ltbReservations.ItemsSource = vipServicesManager.GetAllReservations();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Fout: " + ex.Message,
                         "Exception Sample", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
Beispiel #2
0
 public AddReservation()
 {
     InitializeComponent();
     try
     {
         cmbCustomer.ItemsSource        = vipServicesManager.GetAllCustomers();
         cmbStartLocation.ItemsSource   = vipServicesManager.GetAllLocations();
         cmbArrivalLocation.ItemsSource = vipServicesManager.GetAllLocations();
         cmbArrangement.ItemsSource     = typeof(ArrangementType).GetEnumValues();
         cmbStartTime.ItemsSource       = hours;
         cmbEndTime.ItemsSource         = hours;
         lblLimousine.Visibility        = Visibility.Hidden;
         cmbLimousine.Visibility        = Visibility.Hidden;
         btnPrice.Visibility            = Visibility.Hidden;
         stpPrice.Visibility            = Visibility.Hidden;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Fout: " + ex.Message,
                         "Exception Sample", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }