Ejemplo n.º 1
0
        private void ImageProcessed(BiosecLibClient.BiometricProcessingRes res)
        {
            switch (res)
            {
            case BiosecLibClient.BiometricProcessingRes.BiometricAccepted:
                _username = _libClient.getUserName().ToString();
                // Show biometrics accepted
                _currState = CollectorDialogState.GOOD_BIOMETRICS;
                ShowMessage(false);
                if (_options.IsUnsecure)
                {
                    _result = ResultState.SHOW_FILECHOOSER;
                }
                if (_options.IsSecure)
                {
                    _result = ResultState.SHOW_PB_ENC;
                }
                HideWindowAfter(2000);
                return;

            case BiosecLibClient.BiometricProcessingRes.BiometricMatchNotFound:
                _currState = CollectorDialogState.BAD_BIOMETRICS;
                ShowMessage(false);
                break;

            case BiosecLibClient.BiometricProcessingRes.BiometricNotBelongsToUser:
                _username  = _libClient.getUserName().ToString();
                _currState = CollectorDialogState.NOT_IDENTIFIED_AS_CURRENT_USER;
                ShowMessage(false);
                break;

            case BiosecLibClient.BiometricProcessingRes.BiometricInvalidEncryptionKey:
                _currState = CollectorDialogState.BAD_ENCRYTPION_KEY;
                ShowMessage(false);
                break;

            case BiosecLibClient.BiometricProcessingRes.BiometricInternalError:
            case BiosecLibClient.BiometricProcessingRes.BiometricUnknowEnrror:
            default:
                Auxiliary.Logger._log.Error("Biosecure library thrown " + res.ToString());
                break;
            }
            if (_currDevice != null)
            {
                _currDevice.Dispatch(COMMAND.SINGLECAPTURE_START);
            }
        }
Ejemplo n.º 2
0
 private void ImageProcessedCbc(BiosecLibClient.BiometricProcessingRes result)
 {
     Dispatcher.BeginInvoke(new Action(() => ImageProcessed(result)));
 }