Exemplo n.º 1
0
 public void Stop()
 {
     foreach (var VARIABLE in _threads)
     {
         VARIABLE.Abort();
     }
     IsWorked = false;
 }
Exemplo n.º 2
0
        // clear all threads
        private void Thread_Abort()
        {
            KeyPreview = false;

            foreach (var VARIABLE in threads)
            {
                VARIABLE.Abort();
            }
            threads.Clear();
        }