Пример #1
0
        private void btnAddGuest_Click(object sender, EventArgs e)
        {
            //txtNumGuests = GuestDetails.txtNumGuests;
            AddGuest();
            // SetBill();

            //AddBooking();
            // GuestDetails.AddGuest();
            // DataLoading.LoadBookings();
            DataLoading.Reservations();
            ClearGuesttxtboxes();
            tabControl1.SelectedIndex = 0;
        }
Пример #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();
            }
        }
Пример #3
0
 public void LoadDataGrids()
 {
     DataLoading.dgvRooms        = dgvRooms;
     DataLoading.dgvReservations = dgvReservations;
     GuestDetails.dgvGuests      = dgvGuests;
     dgvGuests.Visible           = true;
     DataLoading.AllRooms();
     DataLoading.TodaysReservations();
     // DataLoading.Reservations();
     // DataLoading.ChoooseRoom();
     GuestDetails.Allguests();
     dtpBookFrom.MinDate = dtpBookFrom.Value.Date;
     // DataLoading.allRoomsFree();
     // SetVarialbes();
     //txtNumGuests = GuestDetails.txtNumGuests;
 }
Пример #4
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();
            }
        }
Пример #5
0
 private void btnTodaysReservations_Click(object sender, EventArgs e)
 {
     DataLoading.TodaysReservations();
 }
Пример #6
0
 private void btnReservationsPending_Click(object sender, EventArgs e)
 {
     DataLoading.Reservations();
 }
Пример #7
0
 private void btnCurrentGuests_Click(object sender, EventArgs e)
 {
     DataLoading.CurrentGuests();
 }
Пример #8
0
 private void btnAllReservations_Click(object sender, EventArgs e)
 {
     DataLoading.Allreservations();
 }