private void ambulantListBtn_Click(object sender, EventArgs e) { try { lesseesClass l = new lesseesClass(); l.getIsAmbulantLessees(); crypt.Load(domainName + "LesseesListCrystalReport.rpt"); crypt.SetDataSource(l.datasetQuery("lessees_tbl")); crypt.SetParameterValue("title", "List of Ambulants"); reportsCrystalReportViewer.ReportSource = crypt; reportsCrystalReportViewer.Refresh(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public LesseesUserControl() { InitializeComponent(); _lc = new lesseesClass(this); }