public void PararServicos(bool fechaServico) { if (servicoInstaladoErodando) { if (fechaServico) { ServiceProcess.StopService(srvName, 40000); } } else { ThreadService.Stop(); } }
private void Button_Demo_Click(object sender, EventArgs e) { if (!_guiFlag) { _fpsUpdater.Start(); _guiUpdater.Start(); } else { _fpsUpdater.Stop(); _guiUpdater.Stop(); } _guiFlag = !_guiFlag; }
private void pararServicosUniNFe() { ThreadService.Stop(); Empresas.ClearLockFiles(false); }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { _gcThread?.Stop(); _cameraThread?.Stop(); }