示例#1
0
        private void Report_Click(object sender, EventArgs e)
        {
            var dateFrom = dateTimePicker1.Value;
            var dateTo   = dateTimePicker2.Value;
            //var result = saleslist.slist1.Where(p => p.Date >= dateFrom && p.Date <= dateTo).ToList();
            var result = myShop.AccessReport(dateFrom, dateTo);

            dataGridView1.DataSource = result;
        }