Пример #1
0
 private void combItemName_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (dateSelected == true)
     {
         AllSalesReport.AllReportBetweenDate(dataGridDailyReport, dateTimeFrom, combItemName.Text);
     }
     else
     {
         AllSalesReport.DisplaySelectedReport(dataGridDailyReport, combItemName.Text);
     }
     lblTotal.Text = string.Format("{0:00.#0}", AllSalesReport.Total);
 }
Пример #2
0
 private void dateTimeTo_ValueChanged(object sender, EventArgs e)
 {
     dateSelected = false;
     AllSalesReport.AllReportBetweenDate(dataGridDailyReport, dateTimeFrom, dateTimeTo);
 }