Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 private void dateTimeTo_ValueChanged(object sender, EventArgs e)
 {
     checkTotal.Checked = false;
     lblTotal.Visible   = false;
     Reports.ReportSearch(dataGridExpense, dateTimeFrom, dateTimeTo);
 }