Example #1
0
        private void btnPayBill_Click(object sender, EventArgs e)
        {
            BookingOperations.CheckOut();
            ClearGuesttxtboxes();

            MessageBox.Show(txtName.Text + " has checked out.");
        }
Example #2
0
        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();
            }
        }
Example #3
0
        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();
            }
        }