private void btnSearch_Click(object sender, EventArgs e) { try { Clear(); //dateTimeDate.Value = dataAccess.Sdate; Reports.ReportSearch(dataGridExpense, dateTimeFrom, dateTimeTo, txtSearch); } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nCould not Find", "Report", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void txtSearch_TextChanged(object sender, EventArgs e) { try { Clear(); dateTimeDate.Value = dataAccess.Sdate; Reports.ReportSearch(dataGridExpense, txtSearch); if (string.IsNullOrEmpty(txtSearch.Text)) { Reports.displayReport(dataGridExpense); } } catch (Exception Ex) { MessageBox.Show(Ex.Message + "\nCould not Find", "Report", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void dateTimeTo_ValueChanged(object sender, EventArgs e) { checkTotal.Checked = false; lblTotal.Visible = false; Reports.ReportSearch(dataGridExpense, dateTimeFrom, dateTimeTo); }