//FUNCION PARA CANCELAR EL REGISTRO private void cancelarRegistroHuella() { lectorHuellas.CancelEnroll(); txtBase64_1.Clear(); imgHuellaCapturada.Image = null; lectorHuellas.OnCapture -= lectorHuellas_OnCapture; }
private void btnVerify_Click(object sender, EventArgs e) { if (ZkFprint.IsRegister) { ZkFprint.CancelEnroll(); } ZkFprint.OnCapture += zkFprint_OnCapture; ZkFprint.BeginCapture(); ShowHintInfo("Please give fingerprint sample."); }
private void btnVerify_Click(object sender, EventArgs e) { if (ZkFprint.IsRegister) { ZkFprint.CancelEnroll(); } ZkFprint.OnCapture += zkFprint_OnCapture; ZkFprint.BeginCapture(); ShowHintInfo("POR FAVOR DE UN EJEMPLO DE SU HUELLA DIGITAL"); }
//FUNCION PARA CANCELAR EL REGISTRO private void cancelarRegistroHuella() { lectorHuellas.CancelEnroll(); txtBase64_1.Clear(); btnVerificar.Enabled = false; imgHuellaCapturada.Image = null; lectorHuellas.OnCapture -= lectorHuellas_OnCapture; lectorHuellas.EnrollCount = 3; lectorHuellas.BeginEnroll(); }
public void CancelarEnrolamiento() { #if (!DEBUG || !DESACTIVAHUELLERO) ZKFPEng.CancelEnroll(); #endif enrolling = false; }
private void button2_Click(object sender, RoutedEventArgs e) { ZKFPEngX1.CancelEnroll(); ZKFPEngX1.EnrollCount = 3; ZKFPEngX1.BeginEnroll(); ShowHintInfo("Begin Register"); }
public static void BeginCapture() { if (!IsConnected) { return; } if (Control.IsRegister) { Control.CancelEnroll(); } SetAutoIdentify(true); Control.BeginCapture(); Status = RobotStatus.capture; }
private void zkFprint_OnEnroll(object sender, IZKFPEngXEvents_OnEnrollEvent e) { if (e.actionResult) { string template = zk_dispositivo.EncodeTemplate1(e.aTemplate); txtBase64_1.Text = template; mostrarNotificacion("Registro satisfactorio, puede verificar su huella."); btnVerificar.Enabled = true; } else { zk_dispositivo.EnrollIndex += 1; mostrarNotificacion("Error, por favor, registre la huella nuevaente."); zk_dispositivo.CancelEnroll(); zk_dispositivo.EnrollCount = 3; zk_dispositivo.BeginEnroll(); } }
public void RemoveFingerprintEvent(System.Windows.Forms.Control.ControlCollection Controls) { Controls.Remove(m_zkFprint); m_currentOnCapture = null; m_currentOnImageReceived = null; m_currentOnFeatureInfo = null; m_currentOnEnroll = null; m_zkFprint.CancelCapture(); m_zkFprint.CancelEnroll(); }
private void btnTimeOut_Click(object sender, EventArgs e) { fpicture.Image = null; lblName.Text = ""; if (ZkFprint.IsRegister) { ZkFprint.CancelEnroll(); } ZkFprint.OnCapture += zkFprint_OnCapture; ZkFprint.OnImageReceived += zkFprint_OnImageReceived; ZkFprint.BeginCapture(); ShowHintInfo("Please give fingerprint sample."); }
private void frmPantallaRegistroEmpleadosEmpresas_FormClosing(object sender, FormClosingEventArgs e) { if (Program.iUsarLectorHuellas == 1) { Controls.Add(lectorHuellas); if (lectorHuellas.InitEngine() == 0) { lectorHuellas.FPEngineVersion = "9"; lectorHuellas.EnrollCount = 3; } lectorHuellas.CancelEnroll(); lectorHuellas.EndEngine(); } }
private void btnRegister_Click(object sender, EventArgs e) { if (txtName.Text != "") { fpicture.Image = null; ZkFprint.OnImageReceived += zkFprint_OnImageReceived; ZkFprint.OnFeatureInfo += zkFprint_OnFeatureInfo; ZkFprint.OnEnroll += zkFprint_OnEnroll; ZkFprint.CancelEnroll(); ZkFprint.EnrollCount = 3; ZkFprint.BeginEnroll(); ShowHintInfo("Please give fingerprint sample."); } else { MessageBox.Show("Enter Name First!"); } }
private void frmIniciarSesion_FormClosing(object sender, FormClosingEventArgs e) { try { if (Program.iUsarHuellasCajeros == 1) { lectorHuellas.OnCapture -= lectorHuellas_OnCapture; lectorHuellas.CancelEnroll(); lectorHuellas.EndEngine(); } } catch (Exception ex) { catchMensaje = new VentanasMensajes.frmMensajeNuevoCatch(); catchMensaje.lblMensaje.Text = ex.Message; catchMensaje.ShowDialog(); } }
private void frmPantallaEspereAlmuerzos_FormClosing(object sender, FormClosingEventArgs e) { try { if ((Program.iUsarLectorHuellas == 1) && (Program.iUsarLectorPantallaEspere == 1)) { lectorHuellas.OnCapture -= lectorHuellas_OnCapture; lectorHuellas.CancelEnroll(); lectorHuellas.EndEngine(); } } catch (Exception ex) { catchMensaje = new VentanasMensajes.frmMensajeNuevoCatch(); catchMensaje.lblMensaje.Text = ex.Message; catchMensaje.ShowDialog(); } }
private void Form1_Load(object sender, EventArgs e) { Controls.Add(ZkFprint); Hide(); InitialAxZkfp(); switch (Argument) { case "check_device": try { if (ZkFprint.InitEngine() == 0) { writeResult("check_device", "true"); } else { writeResult("check_device", "false"); } } catch (Exception err) { writeResult("check_device", err.Message); } finally { Application.Exit(); } break; case "verify_1": if (ZkFprint.IsRegister) { ZkFprint.CancelEnroll(); } ZkFprint.OnCapture += zkFprint_OnCapture; ZkFprint.BeginCapture(); break; case "verify_2": fetch_Finger(Sub_Argument); break; case "done": updateVoteStatus(Int32.Parse(Sub_Argument)); Application.Exit(); break; case "get_secret_key": string json = ""; List <User> users = queryFingerTemplete(); for (int i = 0; i < users.Count; i++) { if (i == users.Count - 1) { json += users[i].secret; } else { json += users[i].secret + ","; } } writeResult("secret_key", json); Application.Exit(); break; } }
private void btnSalir_Click(object sender, EventArgs e) { zk_dispositivo.CancelEnroll(); zk_dispositivo.OnCapture -= zkFprint_OnCapture; this.Close(); }