private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { CorrectiveActionReportForm reportForm = new CorrectiveActionReportForm(); reportForm.anEvent = new AnEvent(); reportForm.anEvent.Id = int.Parse(comboBox3.SelectedItem.ToString()); reportForm.Closed += addEventForm_Closed; reportForm.ShowDialog(); }
private void button4_Click(object sender, EventArgs e) { CorrectiveActionReportForm correctiveActionReportForm = new CorrectiveActionReportForm(); correctiveActionReportForm.ShowDialog(); }