Example #1
0
 private void combItemName_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         CreditSales.AllCreditBetweenDate(dataGridCreditSalesRecord, dateTimeFrom, dateTimeTo, combItemName.Text);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #2
0
 private void dateTimeTo_ValueChanged(object sender, EventArgs e)
 {
     try
     {
         DateSelect = false;
         CreditSales.AllCreditBetweenDate(dataGridCreditSalesRecord, dateTimeFrom, dateTimeTo);
         lblTotal.Text = string.Format("{0:00.#0}", ItemSales.TodayTotal);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }