private void btnPayBill_Click(object sender, EventArgs e) { BookingOperations.CheckOut(); ClearGuesttxtboxes(); MessageBox.Show(txtName.Text + " has checked out."); }
private void btnCancelBooking_Click(object sender, EventArgs e) { DialogResult dialogueResult = MessageBox.Show("Are you sure you want to delete this booking?", "", MessageBoxButtons.OKCancel); if (dialogueResult == DialogResult.OK) { BookingOperations.DeleteBooking(); DataLoading.Allreservations(); tabControl1.SelectedIndex = 0; ClearGuesttxtboxes(); } }
private void btnCheckIn_Click(object sender, EventArgs e) { // DataLoading.OpenAccount(); if (dgvReservations.CurrentCell.Selected = true) { MessageBox.Show(txtName.Text + " has checked in."); } { BookingOperations.CheckIn(); DataLoading.CurrentGuests(); tabControl1.SelectedIndex = 0; ClearGuesttxtboxes(); } }