示例#1
0
 private void StopThread()
 {
     if (_thread != null)
     {
         _thread.Dispose();
         _thread = null;
     }
 }
示例#2
0
        private void StartThread()
        {
            if (_thread != null)
            {
                StopThread();
            }

            _thread = new LoopThread(OnEventTick);
        }