示例#1
0
        public void DisposeNComponents()
        {
            if (_deviceManager != null && !_deviceManager.IsDisposed)
            {
                _deviceManager.Dispose();
            }

            if (_camera != null && !_camera.IsDisposed)
            {
                _camera.Dispose();
            }
            EnableControls(false);
            if (_biometricClient != null)
            {
                _biometricClient.Reset();
                _biometricClient.Cancel();
            }
        }