private void btnAddGuest_Click(object sender, EventArgs e) { //txtNumGuests = GuestDetails.txtNumGuests; AddGuest(); // SetBill(); //AddBooking(); // GuestDetails.AddGuest(); // DataLoading.LoadBookings(); DataLoading.Reservations(); ClearGuesttxtboxes(); tabControl1.SelectedIndex = 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(); } }
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; }
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(); } }
private void btnTodaysReservations_Click(object sender, EventArgs e) { DataLoading.TodaysReservations(); }
private void btnReservationsPending_Click(object sender, EventArgs e) { DataLoading.Reservations(); }
private void btnCurrentGuests_Click(object sender, EventArgs e) { DataLoading.CurrentGuests(); }
private void btnAllReservations_Click(object sender, EventArgs e) { DataLoading.Allreservations(); }