private void btnInstruction_Click(object sender, EventArgs e) { Product product = bdsProduct.Current as Product; if (product == null) { return; } InsertInspectionForm form = new InsertInspectionForm(product); form.ShowDialog(); }
private void btnReInspection_Click(object sender, EventArgs e) { InspectionResult inspectionResult = inspectionResultBindingSource.Current as InspectionResult; if (inspectionResult == null) { return; } InsertInspectionForm form = new InsertInspectionForm(inspectionResult); form.ShowDialog(); }