예제 #1
0
 public void PararServicos(bool fechaServico)
 {
     if (servicoInstaladoErodando)
     {
         if (fechaServico)
         {
             ServiceProcess.StopService(srvName, 40000);
         }
     }
     else
     {
         ThreadService.Stop();
     }
 }
예제 #2
0
        private void Button_Demo_Click(object sender, EventArgs e)
        {
            if (!_guiFlag)
            {
                _fpsUpdater.Start();
                _guiUpdater.Start();
            }
            else
            {
                _fpsUpdater.Stop();
                _guiUpdater.Stop();
            }

            _guiFlag = !_guiFlag;
        }
예제 #3
0
 private void pararServicosUniNFe()
 {
     ThreadService.Stop();
     Empresas.ClearLockFiles(false);
 }
예제 #4
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _gcThread?.Stop();
     _cameraThread?.Stop();
 }