private void button12_Click(object sender, EventArgs e) { using (frmSearchForSelectedEquiry frm = new frmSearchForSelectedEquiry()) { frm.ShowDialog(); } }
private void btnSearchForEnquiry_Click(object sender, EventArgs e) { using (frmSearchForSelectedEquiry frm = new frmSearchForSelectedEquiry()) { frm.ShowDialog(); this.refreshInProgressEnquiry(frm.SelectedEnquiryID); if (enquiryInprogressBindingSource.Count > 0) { this.enableFormControlsIfNoEnquiryLoaded(); } else { this.disableFormControlsIfNoEnquiryLoaded(); } } }