示例#1
0
 public void CancelSearch()
 {
   if (!_asyncQuery.IsExecuting)
   {
     return;
   }
   _asyncQuery.Cancel();
   //btnAddCriteria.Enabled = true;
   //btnRemoveCriteria.Enabled = true;
   //btnStartSearch.Enabled = true;
   //btnChangeDb.Enabled = true;
   //btnStopSearch.Enabled = false;
   //cmbServers.Enabled = true;
   //cmbDatabases.Enabled = true;
   DisableToolStripButtons(false);
 }
        public void CancelAsync( )
        {
            if (!IsExecutingAsync)
            {
                return;
            }

            asyncQry.Cancel();
        }
示例#3
0
 public void CancelSearch()
 {
   if (!_asyncQuery.IsExecuting)
   {
     return;
   }
   _asyncQuery.Cancel();
   btnList.Enabled = true;
   btnStop.Enabled = false;
   SetInputControlsEnabled(true);
 }