Пример #1
0
        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);
            }
        }
Пример #2
0
        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;
        }