// bring up edit form for AircraftCompartment // links: // docLink: http://sql2x.org/documentationLink/c7fc6d72-476a-4d4b-b327-08e419db92a5 private void dataGridViewAircraftCompartment_DoubleClick(object sender, EventArgs e) { var editForm = new AircraftCompartmentEdit(); editForm.MdiParent = this.MdiParent; editForm.ShowAsEdit((System.Guid)dataGridViewAircraftCompartment.CurrentRow.Cells["AircraftCompartmentId"].Value); }
// bring up edit form for AircraftCompartment // links: // docLink: http://sql2x.org/documentationLink/a0d70634-76b1-43a0-bf41-c77b3ab4107f private void dataGridViewAircraftCompartment_DoubleClick(object sender, EventArgs e) { var editForm = new AircraftCompartmentEdit(); editForm.MdiParent = this.MdiParent; // no code because ChildDefinition is missing }
// bring up add form for AircraftCompartment // links: // docLink: http://sql2x.org/documentationLink/99b0d247-c5de-47a0-a27a-a6825fb73541 private void buttonAircraftCompartmentAdd_Click(object sender, EventArgs e) { var editForm = new AircraftCompartmentEdit(); editForm.MdiParent = this.MdiParent; editForm.ShowAsAddByRules(_userId); }