private void OnAddNewLabInvestigationClick(object sender, EventArgs e) { LabInvestigation obj = new LabInvestigation(this.mOPDInvestigationProcedure); LabInvestigationForm.ShowForm(obj); LabInvestigationCollection opdLabInvestigationList = new LabInvestigationCollection(); this.cmbLabInvestigation.DataSource = opdLabInvestigationList; this.cmbLabInvestigation.DisplayMember = "DisplayName"; }
public static bool ShowForm(LabInvestigation obj) { bool r = false; if (!Objectbase.IsNullOrEmpty(obj)) { using (LabInvestigationForm frm = new LabInvestigationForm(obj)) { r = frm.ShowDialog() == DialogResult.OK; } } return(r); }