Beispiel #1
0
        private void btnThreadEx_Click(object sender, RoutedEventArgs e)
        {
            if (_thread != null)
            {
                _thread.Stop();
                _thread.Dispose();
                _thread = null;
                return;
            }

            _thread = new ThreadEx(ThreadMethod, "xx", true);
            _thread.Start();
        }