private void startSpotterThread() { if (spotter != null) { lastSpotterState = null; currentSpotterState = null; spotterIsRunning = true; ThreadStart work = spotterWork; Thread thread = new Thread(work); runSpotterThread = true; thread.Start(); } }