Esempio n. 1
0
        public void StopScanning()
        {
            if (UseCustomOverlay && CustomOverlay != null)
            {
                gridCustomOverlay.Children.Remove(CustomOverlay);
            }

            BlackoutVideoBrush();

            if (_reader != null)
            {
                _reader.Stop();
                _reader = null;
            }
        }
        public void StopScanning()
        {
            if (UseCustomOverlay && CustomOverlay != null)
            {
                gridCustomOverlay.Children.Remove(CustomOverlay);
            }

            BlackoutVideoBrush();

            if (_reader != null)
            {
                _reader.Stop();
                _reader.CameraInitialized -= ReaderOnCameraInitialized;
                _reader.DecodingCompleted -= (o, r) => DisplayResult(r);
                _reader = null;
            }
        }