Ejemplo n.º 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;
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 5
0
 private void btnTodaysReservations_Click(object sender, EventArgs e)
 {
     DataLoading.TodaysReservations();
 }
Ejemplo n.º 6
0
 private void btnReservationsPending_Click(object sender, EventArgs e)
 {
     DataLoading.Reservations();
 }
Ejemplo n.º 7
0
 private void btnCurrentGuests_Click(object sender, EventArgs e)
 {
     DataLoading.CurrentGuests();
 }
Ejemplo n.º 8
0
 private void btnAllReservations_Click(object sender, EventArgs e)
 {
     DataLoading.Allreservations();
 }