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;
 }
Beispiel #2
0
        private void btnClear_Click(object sender, EventArgs e)
        {
            btnSearch.Enabled = false;
            btnClear.Enabled  = false;

            DriverID.SetEditValue(string.Empty);
            MedTypeID.SetEditValue(string.Empty);
            ValidityDateFrom.EditValue = DateTime.Now.StartOfMonth();
            ValidityDateTo.EditValue   = DateTime.Now.EndOfMonth();

            btnSearch.Enabled = true;
            btnClear.Enabled  = true;
        }