コード例 #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();
     }
 }
コード例 #2
0
        private void NewBookingButton_Click(object sender, EventArgs e)
        {
            Form f = new BookingForm();

            f.Show();
        }
コード例 #3
0
        private void BookingsListBox_MouseDoubleClick(object sender, EventArgs e)
        {
            Form f = new BookingForm((Booking)BookingsListBox.SelectedItem);

            f.Show();
        }