Exemple #1
0
 private void button_Register_Click(object sender, EventArgs e)
 {
     //Boolean Result = BioKeyComponents.IsHaveName(this.treeView1.SelectedNode.Text);
     //if (Result)
     //{
     if (AxZKFPEngX1.IsRegister)
     {
         AxZKFPEngX1.CancelEnroll();
     }
     AxZKFPEngX1.BeginEnroll();
     //}
     //else
     //{
     //    MessageBox.Show("当前用户已经有指纹备案!");
     //}
 }
Exemple #2
0
 private void BioKeyInputForm_Load(object sender, EventArgs e)
 {
     if (AxZKFPEngX1.InitEngine() != 0)
     {
         MessageBox.Show("指纹仪初始化失败");
         this.DialogResult = DialogResult.No;
         this.Close();
     }
     else
     {
         if (AxZKFPEngX1.IsRegister)
         {
             AxZKFPEngX1.CancelEnroll();
         }
         AxZKFPEngX1.BeginCapture();
         Thread UpData = new Thread(BeginCountDown);
         UpData.IsBackground = true;
         UpData.Start();
     }
 }