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); }
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); }
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); }
private void OnPutOn(FTR_PROGRESS Progress) { UpdateNote("Put your right thumb onto the device, please ...", Color.Yellow); }
private void OnTakeOff(FTR_PROGRESS Progress) { UpdateNote("Take off your finger from device, please ...", Color.Yellow); }
private bool OnFakeSource(FTR_PROGRESS Progress) { UpdateNote("No thumb detected.", Color.Red); return(false); }
private void OnTakeOff(FTR_PROGRESS Progress) { this.SetStatusText("Quite el dedo del dispositivo, por favor..."); }
private void OnPutOn(FTR_PROGRESS Progress) { this.SetStatusText("Pon el dedo en el dispositivo, por favor ..."); }
private void OnTakeOff(FTR_PROGRESS Progress) { this.SetStatusText("Take off finger from device, please ..."); }
private void OnPutOn(FTR_PROGRESS Progress) { this.SetStatusText("Put finger into device, please ..."); }
private void OnPutOn(FTR_PROGRESS Progress) { //Console.WriteLine("Put finger into device, please ..."); Console.WriteLine("Place thumb on the fingerprint reader."); }
private void OnTakeOff(FTR_PROGRESS Progress) { //Console.WriteLine("Take off finger from device, please ..."); Console.WriteLine("Remove thumb from fingerprint scanner."); }
//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); }