Пример #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);
 }
Пример #2
0
        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);
 }