private void BookingCancellationButton_Click(object sender, EventArgs e) { if (cancelBooking == null) { cancelBooking = new CancelBookingForm(); cancelBooking.MdiParent = this; cancelBooking.Dock = DockStyle.Fill; cancelBooking.Show(); cancelBooking.FormClosed += CancelBooking_FormClosed; } else { cancelBooking.Activate(); } }
public MemberQueryForm(CancelBookingForm callingForm) : this() { frm2 = callingForm; }
private void EditBookingButton_Click(object sender, EventArgs e) { CancelBookingForm Form = new CancelBookingForm(); Form.Show(); }
private void CancelBooking_FormClosed(object sender, FormClosedEventArgs e) { cancelBooking = null; }