private void btnNew_Click(object sender, EventArgs e)
 {
     if (userInfo.isCustomer == false && resUserID == -1)
     {
         displayError("Please enter a customer ID");
     }
     else
     {
         var newReservation = new CreateReservation(userInfo.userID, resUserID, currentDate);
         newReservation.FormClosed += new FormClosedEventHandler(newReservation_FormClosed);
         this.Hide();
         newReservation.Show();
     }
 }
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (resUserID == -1)
     {
         displayError("Please enter a customer ID");
     }
     else if (resListDataGrid.SelectedRows.Count < 1)
     {
         displayError("Please select a reservation");
     }
     else
     {
         // Pulls out confirmation ID from selected row
         int confirmationID = getConfirmationID();
         var modReservation = new CreateReservation(userInfo.userID, confirmationID, currentDate, true);
         modReservation.FormClosed += new FormClosedEventHandler(newReservation_FormClosed);
         modReservation.FormClosed += new FormClosedEventHandler(modReservation_FormClosed);
         this.Hide();
         modReservation.Show();
     }
 }