private void btnSearch_Click(object sender, EventArgs e) { if (dtpStart.Value != null && dtpEnd.Value != null) { CustomerOrders customerOrdersForm = new CustomerOrders(customerList, dtpStart.Value, dtpEnd.Value); customerOrdersForm.ShowDialog(); } }
private void btnShowList_Click(object sender, EventArgs e) { CustomerOrders customerOrdersForm = new CustomerOrders(customerList); customerOrdersForm.ShowDialog(); }