public void Play() { if (thread == null) { isPlaying = true; // create events stop = false; // create and start new thread thread = new Thread(WorkerThread); thread.Start(); } }