private void dataGridViewBookingPassengers_DoubleClick(object sender, EventArgs e) { var editForm = new BookingPassengerEdit(); editForm.MdiParent = this.MdiParent; editForm.ShowAsEdit((System.Guid)dataGridViewBookingPassengers.CurrentRow.Cells["BookingPassengerId"].Value); }
private void buttonCrudeBookingPassengerAdd_Click(object sender, EventArgs e) { var editForm = new BookingPassengerEdit(); editForm.MdiParent = this.MdiParent; editForm.ShowAsAddByBookingAndUser(_bookingContract.Booking.BookingId, _userId); }