Beispiel #1
0
        public void Pause()
        {
            SboEn.UpdateLiveDataChange -= SboEnOnUpdateLiveDataChange;
            IbetEn.ScoreEventChanged   -= IbetEnScoreEventChanged;
            SboEn.OnExceptionEvent     -= SboScan_OnExceptionEvent;
            IbetEn.OnExceptionEvent    -= IbetScan_OnExceptionEvent;

            SboEnScan.OnExceptionEvent  -= SboScan_OnExceptionEvent;
            IbetEnScan.OnExceptionEvent -= IbetScan_OnExceptionEvent;

            if (IbetEn.Status == eServiceStatus.Started)
            {
                IbetEn.PauseScan();
            }

            if (SboEn.Status == eServiceStatus.Started)
            {
                SboEn.PauseScan();
            }

            if (SboEnScan.Status == eServiceStatus.Started)
            {
                SboEnScan.PauseScan();
            }

            if (IbetEnScan.Status == eServiceStatus.Started)
            {
                IbetEnScan.PauseScan();
            }

            Status = eServiceStatus.Paused;
        }