Beispiel #1
0
 private void FormQueryBuilder_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         _cancelTracker.Cancel();
     }
 }
Beispiel #2
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     lock (_cancelTracker)
     {
         _cancelTracker.Cancel();
     }
 }
Beispiel #3
0
        private void BuildList(bool checkTreeNodes)
        {
            if (_worker != null)
            {
                _cancelTracker.Cancel();
                //while (_worker != null) ;
            }

            //_worker=new Thread(new ParameterizedThreadStart(BuildListThread));
            //_worker.Start(checkTreeNodes);

            BuildListThread(checkTreeNodes);
        }