private void txtSearch_TextChanged(object sender, EventArgs e) { lblTotal.Visible = false; checkTotal.Checked = false; RecordAccess.todaySeacrchRecords(dataGridRecords, txtSearch); if (string.IsNullOrEmpty(txtSearch.Text)) { RecordAccess.todayRecords(dataGridRecords); } }
private void combFeeName_SelectedIndexChanged(object sender, EventArgs e) { try { RecordAccess.todaySeacrchRecordsByFeename(dataGridRecords, combFeeName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message, "search Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void dateTimeReport_ValueChanged(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(combFeeName.Text)) { throw new Exception("Select a fee to search"); } RecordAccess.Report(dataGridViewRecords, combFeeName.Text, dateTimeReport); }catch (Exception ex) { MessageBox.Show(ex.Message + " \nOperation failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnSearch_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(txtSearch.Text)) { throw new Exception("Enter the Fee Name"); } RecordAccess.todayRecords(dataGridRecords); } catch (Exception Ex) { MessageBox.Show(Ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void TodayPayRecords_Load(object sender, EventArgs e) { RecordAccess.todayRecords(dataGridRecords); }
public TodayPayRecords() { InitializeComponent(); RecordAccess.getTodayfeeNames(combFeeName); }
private void btnViewTodayAll_Click(object sender, EventArgs e) { lblTotal.Visible = false; checkTotal.Checked = false; RecordAccess.todayRecords(dataGridRecords); }