コード例 #1
0
 private void btnConfirmReservationsToBookings_Click(object sender, RoutedEventArgs e)
 {
     if (cbxAdmin.SelectedItem == null)
     {
     }
     else if (dgReservationsAdmin.SelectedItem == null)
     {
     }
     else
     {
         bookingHandler.AddBookingsToDB(dgReservationsAdmin.SelectedItem as Reservation, cbxAdmin.SelectedItem as Admin);
         dgBookingOverviewAdmin.ItemsSource = bookingHandler.GetAllBookings();
     }
 }