void ver_FPVerificationStatus(VerificationStatus Status) { log.Debug("IN"); try { log.Debug("Status:" + Status.ToString()); if (Status == VerificationStatus.v_OK) { log.Info("Fingerprint found for: " + userIDForForm); //MessageBox.Show("Fingerprint found for: " + userIDForForm, "Success"); ver.FPVerificationStop(); this.Close(); } else if (Status == VerificationStatus.v_NotMatch) { MessageBox.Show("Fingerprint did not match any users on record.", "No Match"); log.Info("Fingerprint did not match any users on record."); //ver.FPVerificationStop(); } } catch (Exception ex) { log.Error("Error", ex); MessageBox.Show(ex.Message, "Error - " + System.Reflection.MethodBase.GetCurrentMethod().Name); } }
private void frmChamada_FormClosing(object sender, FormClosingEventArgs e) { ver.FPVerificationStop(); }