private void ViewBookingButton_Click(object sender, EventArgs e) { if (CheckInTodayListBox.SelectedItem != null) { Form f = new BookingForm((Booking)CheckInTodayListBox.SelectedItem); f.Show(); } else if (CheckOutTodayListBox.SelectedItem != null) { Form f = new BookingForm((Booking)CheckOutTodayListBox.SelectedItem); f.Show(); } }
private void NewBookingButton_Click(object sender, EventArgs e) { Form f = new BookingForm(); f.Show(); }
private void BookingsListBox_MouseDoubleClick(object sender, EventArgs e) { Form f = new BookingForm((Booking)BookingsListBox.SelectedItem); f.Show(); }