public void toggleProcessors() { if (poller.ThreadState == System.Threading.ThreadState.Suspended) poller.Resume(); else poller.Suspend(); }