public override void Dispose()
 {
     _imageProcessor.CameraErrorEvent  -= ImageProcessorOnCameraErrorEvent;
     _imageProcessor.ImageChanged      -= ImageProcessorOnStreamChanged;
     _imageProcessor.CameraAddEvent    -= ImageProcessorCameraAddEvent;
     _imageProcessor.CameraRemoveEvent -= ImageProcessorCameraRemoveEvent;
     _sessionOpened = false;
     PreviewReady   = false;
     _imageProcessor.Dispose();
 }
Пример #2
0
        public override void Dispose()
        {
            _imageProcessor.TimerElapsed       -= ImageProcessorOnTimerElapsed;
            _imageProcessor.CameraErrorEvent   -= ImageProcessorOnCameraErrorEvent;
            _imageProcessor.ImageChanged       -= ImageProcessorOnStreamChanged;
            _imageProcessor.ImageNumberChanged -= ImageProcessorOnImageNumberChanged;

            _sessionOpened = false;
            TakingPicture  = false;
            _isLiveViewOn  = false;
            _imageProcessor.Dispose();
        }