Esempio n. 1
0
        private void btnDelFingerPrint_Click(object sender, EventArgs e)
        {
            if (_modoCargaImagen == Common.ModoCargaImagen.DesdeArchivo)
            {
                pbFingerPrint.Image = null;
            }
            else
            {
                if (ZKFPEngX1.IsRegister)
                {
                    FingerPrintImageDisposing();
                    ZKFPEngX1.CancelEnroll();
                    ZKFPEngX1.EnrollCount = 3;
                    ZKFPEngX1.BeginEnroll();
                    lblresult.Text = "Sensor de Huella conectado y Listo para iniciar registro.";
                    ShowHintImage(3);
                }
                else
                {
                    DialogResult rpta = MessageBox.Show("La huella ya esta verificada correctamente. \n¿ Desea volver a realizar el registro ? ", "ZK4500 Finger Print ", MessageBoxButtons.YesNo);

                    if (rpta == DialogResult.Yes)
                    {
                        FingerPrintImageDisposing();
                        ZKFPEngX1.CancelEnroll();
                        ZKFPEngX1.EnrollCount = 3;
                        ZKFPEngX1.BeginEnroll();
                        lblresult.Text = "Sensor de Huella conectado y Listo para iniciar registro.";
                        ShowHintImage(3);
                    }
                }

                //ZKFPEngX1.BeginCapture();
            }
        }
Esempio n. 2
0
 //Comienzo de la inscripción de huellas dactilares
 private void EnrollFingerPrint(object sender, EventArgs e)
 {
     ZKFPEngX1.CancelEnroll();
     ZKFPEngX1.EnrollCount = 3;
     ZKFPEngX1.BeginEnroll();
     ShowHintInfo("Inicio de Registro");
 }
Esempio n. 3
0
 //开始登记指纹
 private void btnEnroll_Click(object sender, EventArgs e)
 {
     ZKFPEngX1.CancelEnroll();
     ZKFPEngX1.EnrollCount = 3;
     ZKFPEngX1.BeginEnroll();
     ShowHintInfo("Begin Register");
 }
Esempio n. 4
0
        private void btnDeviceConnect_Click(object sender, EventArgs e)
        {
            // prcDataInsert();
            Chk = 0;

            long nR = ZKFPEngX1.InitEngine();

            if (nR == 0)
            {
                EDSensorSN.Text = ZKFPEngX1.SensorSN;
                prcFingerIssuerSNCheck(EDSensorSN.Text);

                if (Chk == 0)
                {
                    btnDeviceConnect.Enabled = false;
                    FMatchType = 2;
                    if (Radio9.Checked)
                    {
                        ZKFPEngX1.FPEngineVersion = "9";
                    }
                    else
                    {
                        ZKFPEngX1.FPEngineVersion = "10";
                    }

                    fpcHandle          = ZKFPEngX1.CreateFPCacheDB();
                    EDSensorNum.Text   = Convert.ToString(ZKFPEngX1.SensorCount);
                    EDSensorIndex.Text = Convert.ToString(ZKFPEngX1.SensorIndex);
                    ////EDSensorSN.Text = ZKFPEngX1.SensorSN;

                    ShowHintInfo("Sensor connected");

                    ZKFPEngX1.EnrollCount = 3;

                    if (ZKFPEngX1.IsRegister)
                    {
                        ZKFPEngX1.CancelEnroll();
                    }

                    FAutoIdentify = false;
                    ZKFPEngX1.SetAutoIdentifyPara(FAutoIdentify, fpcHandle, 8);
                    ShowHintInfo("Begin verification. Please finger touch in device.");
                    FMatchType = 2;
                    lvlDataMatchImg.Visible   = true;
                    lvlDataMatchImg.Text      = "Please Press Finger";
                    lvlDataMatchImg.ForeColor = Color.Blue;
                    btnCancel.Enabled         = true;
                }
                else
                {
                    ZKFPEngX1.EndEngine();
                    ShowHintInfo("Failed to connect sensor");
                }
            }
            else
            {
                ShowHintInfo("Failed to connect sensor");
            }
        }
Esempio n. 5
0
 //比对指纹
 private void btnVerify_Click(object sender, EventArgs e)
 {
     if (ZKFPEngX1.IsRegister)
     {
         ZKFPEngX1.CancelEnroll();
     }
     FAutoIdentify = false;
     ZKFPEngX1.SetAutoIdentifyPara(FAutoIdentify, fpcHandle, 8);
     ShowHintInfo("begin verification(1:N)");
     FMatchType = 2;
 }
Esempio n. 6
0
        //窗口初始化
        private void FingerDemo_Load(object sender, EventArgs e)
        {
            if (ZKFPEngX1.InitEngine() == 0)
            {
                ZKFPEngX1.FPEngineVersion = "9";

                ZKFPEngX1.EnrollCount = 1;

                ZKFPEngX1.CancelEnroll();
                ZKFPEngX1.EnrollCount = 1;
                ZKFPEngX1.BeginEnroll();
            }
            else
            {
                MessageBox.Show("Failed to connect Device \n"
                                + "Please Connect properly", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                this.Close();
            }
        }
Esempio n. 7
0
 private void btnCancelRegisterPrint_Click(object sender, EventArgs e)
 {
     ZKFPEngX1.CancelEnroll();
     ShowHintInfo("取消登记指纹");
 }