public void Pause() { try { //_driver.OnSboScanUpdate -= OnSboUpdateScan; IsnEngine.UpdateLiveDataChange -= OnIsnUpdateScan; // tạm đóng // PiSboDriver.OnSboScanUpdate -= PiSboDriver_OnSboScanUpdate; PiEngine.PauseScan(); if (IsnEngine.Status == eServiceStatus.Started) { IsnEngine.PauseScan(); } if (objUpdateCreditTimer != null) { objUpdateCreditTimer.Dispose(); } Status = eServiceStatus.Paused; } catch (Exception ex) { Logger.Error("Dispose: " + ex.Message); } }
public void Pause() { //_driver.OnSboScanUpdate -= OnSboUpdateScan; SboEngine.UpdateLiveDataChange -= OnSboUpdateScan; PiSboDriver.OnSboScanUpdate -= PiSboDriver_OnSboScanUpdate; PiEngine.PauseScan(); if (SboEngine.Status == eServiceStatus.Started) { SboEngine.PauseScan(); } if (objUpdateCreditTimer != null) { objUpdateCreditTimer.Dispose(); } Status = eServiceStatus.Paused; }