private void btnClear_Click(object sender, EventArgs e)
 {
     xU_Dispatch.ClearDispatch();
     DriverID.SetEditValue(string.Empty);
     CompanyID.SetEditValue(string.Empty);
     fromDate.DateTime        = DateTime.Now.StartOfWeek();
     toDate.EditValue         = null;
     IncludeCancelled.Checked = false;
 }
        private void btnClear_Click(object sender, EventArgs e)
        {
            DateTime now = DateTime.Now;

            InvoiceNumber.EditValue = string.Empty;
            IssuedFrom.EditValue    = new DateTime(now.Year, now.Month, 1);
            IssuedTo.EditValue      = new DateTime(now.Year, now.Month, DateTime.DaysInMonth(now.Year, now.Month));
            PeriodFrom.EditValue    = null;
            PeriodTo.EditValue      = null;
            CompanyID.SetEditValue(string.Empty);
            LocationID.SetEditValue(string.Empty);
        }