コード例 #1
0
        private bool OnFakeSource(FTR_PROGRESS Progress)
        {
            if (m_bExit)
            {
                return(true);
            }

            MessageBoxResult result;

            result = MessageBox.Show("Fuente falsa detectada o el dispositivo esta sucio. ¿Quieres continuar el proceso?",
                                     "KallpaBox Security.",
                                     MessageBoxButton.YesNo, MessageBoxImage.Question);
            return(result == MessageBoxResult.No);
        }
コード例 #2
0
        private bool OnFakeSource(FTR_PROGRESS Progress)
        {
            if (m_bExit)
            {
                return(true);
            }

            MessageBoxResult result;

            result = MessageBox.Show("Fuente o objeto falso detectado. o el huellero esta sucio.\n¿Quieres continuar el proceso?",
                                     "KallpaBox Security",
                                     MessageBoxButton.YesNo,
                                     MessageBoxImage.Question);
            return(result == MessageBoxResult.No);
        }
コード例 #3
0
        private bool OnFakeSource(FTR_PROGRESS Progress)
        {
            if (m_bExit)
            {
                return(true);
            }
            else
            {
                return(false);
            }

            //DialogResult result;
            //result = MessageBox.Show("Fake source detected. Do you want continue process?",
            //                         "C# example for Futronic SDK",
            //                         MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            //return (result == DialogResult.No);
        }
コード例 #4
0
ファイル: FormNewUser.cs プロジェクト: tuga1975/SSK
 private void OnPutOn(FTR_PROGRESS Progress)
 {
     UpdateNote("Put your right thumb onto the device, please ...", Color.Yellow);
 }
コード例 #5
0
ファイル: FormNewUser.cs プロジェクト: tuga1975/SSK
 private void OnTakeOff(FTR_PROGRESS Progress)
 {
     UpdateNote("Take off your finger from device, please ...", Color.Yellow);
 }
コード例 #6
0
ファイル: FormNewUser.cs プロジェクト: tuga1975/SSK
 private bool OnFakeSource(FTR_PROGRESS Progress)
 {
     UpdateNote("No thumb detected.", Color.Red);
     return(false);
 }
コード例 #7
0
 private void OnTakeOff(FTR_PROGRESS Progress)
 {
     this.SetStatusText("Quite el dedo del dispositivo, por favor...");
 }
コード例 #8
0
 private void OnPutOn(FTR_PROGRESS Progress)
 {
     this.SetStatusText("Pon el dedo en el dispositivo, por favor ...");
 }
コード例 #9
0
 private void OnTakeOff(FTR_PROGRESS Progress)
 {
     this.SetStatusText("Take off finger from device, please ...");
 }
コード例 #10
0
 private void OnPutOn(FTR_PROGRESS Progress)
 {
     this.SetStatusText("Put finger into device, please ...");
 }
コード例 #11
0
ファイル: FingerprintReaderUtil.cs プロジェクト: tuga1975/SSK
 private void OnPutOn(FTR_PROGRESS Progress)
 {
     //Console.WriteLine("Put finger into device, please ...");
     Console.WriteLine("Place thumb on the fingerprint reader.");
 }
コード例 #12
0
ファイル: FingerprintReaderUtil.cs プロジェクト: tuga1975/SSK
 private void OnTakeOff(FTR_PROGRESS Progress)
 {
     //Console.WriteLine("Take off finger from device, please ...");
     Console.WriteLine("Remove thumb from fingerprint scanner.");
 }
コード例 #13
0
ファイル: FingerprintReaderUtil.cs プロジェクト: tuga1975/SSK
        //public FingerprintScannerStartResult StartVerification(OnVerificationCompleteHandler onVerificationComplete, byte[] fingerprint_Template)
        //{
        //    // Create returnValue
        //    FingerprintScannerStartResult returnValue = new FingerprintScannerStartResult()
        //    {
        //        Success = false,
        //        FailedInfo = null
        //    };

        //    try
        //    {
        //        if (fingerprint_Template == null)
        //        {
        //            returnValue.FailedInfo = new FailedInfo()
        //            {
        //                ErrorCode = (int)EnumErrorCodes.FingerprintNull,
        //                ErrorMessage = new ErrorInfo().GetErrorMessage(EnumErrorCodes.FingerprintNull)
        //            };
        //            return returnValue;
        //        }
        //        Debug.WriteLine("Verification is starting, please wait ...");
        //        _onVerificationComplete = onVerificationComplete;

        //        _futronicVerification = new FutronicVerification(fingerprint_Template);

        //        // Set control properties
        //        _futronicVerification.FakeDetection = true;
        //        _futronicVerification.FFDControl = true;
        //        _futronicVerification.FARN = 200;
        //        _futronicVerification.Version = VersionCompatible.ftr_version_compatible;
        //        _futronicVerification.FastMode = true;
        //        _futronicVerification.MinMinuitaeLevel = 3;
        //        _futronicVerification.MinOverlappedLevel = 3;

        //        // register events
        //        _futronicVerification.OnPutOn += OnPutOn;
        //        _futronicVerification.OnTakeOff += OnTakeOff;
        //        //futronicVerification.UpdateScreenImage += new UpdateScreenImageHandler(this.UpdateScreenImage);
        //        _futronicVerification.OnFakeSource += OnFakeSource;
        //        _futronicVerification.OnVerificationComplete += _onVerificationComplete;

        //        // start verification process
        //        _futronicVerification.Verification();

        //        // return value
        //        returnValue.Success = true;

        //        return returnValue;
        //    }
        //    catch (Exception ex)
        //    {

        //        Debug.WriteLine("StartStartVerification Exception: ");
        //        Debug.WriteLine(ex.Message);

        //        returnValue.FailedInfo = new FailedInfo()
        //        {
        //            ErrorCode = (int)EnumErrorCodes.UnknownError,
        //            ErrorMessage = new ErrorInfo().GetErrorMessage(EnumErrorCodes.UnknownError)
        //        };

        //        return returnValue;
        //    }
        //}

        //internal void StopVerification()
        //{
        //    // unregister events
        //    if (_futronicVerification != null)
        //    {
        //        _futronicVerification.OnPutOn -= OnPutOn;
        //        _futronicVerification.OnTakeOff -= OnTakeOff;
        //        //_futronicVerification.UpdateScreenImage -= UpdateScreenImage;
        //        _futronicVerification.OnFakeSource -= OnFakeSource;
        //        _futronicVerification.OnVerificationComplete -= _onVerificationComplete;

        //        _futronicVerification = null;
        //    }
        //}

        private bool OnFakeSource(FTR_PROGRESS Progress)
        {
            //Console.WriteLine("Fake source detected. Continue ...");
            Console.WriteLine("No thumb detected");
            return(false);
        }