public void StopTest(Boolean now) { shutdown = !now; StopTestClass stc = new StopTestClass(now); Thread stopThread = new Thread(stc.Run); stopThread.Start(this); }