private void btnAcceptSingleBookingRequest_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         SingleBooking sB = dtgRequestedSingleBookings.SelectedItem as SingleBooking;
         sBHandler.AcceptSingleBookingRequest(sB.Id, admin.Id);
         dtgRequestedSingleBookings.SelectedItem = null;
         dtgRequestedSingleBookings.ItemsSource  = sBHandler.GetAllPendingSingleBookings();
     }
     catch (ArgumentNullException)
     {
         MessageBox.Show("You need to select a booking to accept it.");
     }
 }
        public AdminWindow(Admin admin)
        {
            InitializeComponent();
            this.admin      = admin;
            oBHandler       = new OngoingBookingsHandler();
            sBHandler       = new SingleBookingsHandler();
            companyHandler  = new CompanyHandler();
            activityHandler = new ActivitiesHandler();

            dtgRequestedOngoingBookings.ItemsSource = oBHandler.GetAllPendingOngoingBookings();
            dtgRequestedSingleBookings.ItemsSource  = sBHandler.GetAllPendingSingleBookings();
            sections = new int[6] {
                1, 2, 3, 4, 5, 6
            };
            cboNewActivitySectionsRequired.ItemsSource = sections;
        }