Esempio n. 1
0
 private void captureFinger()
 {
     while (!exitThread)
     {
         readyForNext.Reset();
         //Reset Timer
         minTimeCount = 0;
         int ret = mfs100.StartCapture(quality, timeout, false);
         if (ret != 0)
         {
             showMessage(mfs100.GetErrorMsg(ret), true);
         }
         readyForNext.WaitOne();
     }
 }
Esempio n. 2
0
        private void btnCapture_Click(object sender, EventArgs e)
        {
            btnCapture.Enabled = false;
            try
            {
                if (previewState == "Finger1")
                {
                    clearBioValues();
                }
                int ret = mfs100.StartCapture(quality, timeout, true);
                if (ret != 0)
                {
                    showMessage(mfs100.GetErrorMsg(ret), true);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, "Exception@btnCapture_Click", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            btnCapture.Enabled = true;
        }