Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
        private void NewBookingButton_Click(object sender, EventArgs e)
        {
            Form f = new BookingForm();

            f.Show();
        }
Ejemplo n.º 3
0
        private void BookingsListBox_MouseDoubleClick(object sender, EventArgs e)
        {
            Form f = new BookingForm((Booking)BookingsListBox.SelectedItem);

            f.Show();
        }