private void txtsearch_TextChanged(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; DailyReports.SearchDailyReport(dataGridRecordsReport, txtsearch); if (string.IsNullOrEmpty(txtsearch.Text)) { report.DisplayReports(dataGridRecordsReport); } }
private void dateTimeTo_ValueChanged(object sender, EventArgs e) { try { DailyReports.SearchDailyReport(dataGridRecordsReport, dateTimeFrom, dateTimeTo); } catch (Exception ex) { MessageBox.Show(ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void dateTimeFrom_ValueChanged(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; DailyReports.SearchDailyReport(dataGridRecordsReport, dateTimeFrom); }
private void btnSearch_Click(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; DailyReports.SearchDailyReport(dataGridRecordsReport, dateTimeFrom, dateTimeTo, txtsearch); }