Ejemplo n.º 1
0
 void _biometrics_IdentifySuccess(object sender, AuthenticationSuccessEventArgs e)
 {
     // Must be dispatched! Because the session is only good for a single result,
     // we need to close it and reopen another one for a subsequent scan. Closing
     // and reopening the session must be done on the same thread that opened the
     // session. Thus, we need to asynchronously dispatch back to the UI thread.
     Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,
                            new Action(() =>
     {
         Status.Text   = "Success";
         UserName.Text = e.IdentityReference.ToString();
         _session.Close();
         _session = _biometrics.OpenSession();
     }));
 }
Ejemplo n.º 2
0
        public BiometricTestWindow()
        {
            InitializeComponent();

            _biometrics = new Biometrics();

            _biometrics.IdentifyFailed  += _biometrics_IdentifyFailed;
            _biometrics.IdentifySuccess += _biometrics_IdentifySuccess;

            _session = _biometrics.OpenSession();
        }
        public BiometricTestWindow()
        {
            InitializeComponent();

            _biometrics = new Biometrics();

            _biometrics.IdentifyFailed += _biometrics_IdentifyFailed;
            _biometrics.IdentifySuccess += _biometrics_IdentifySuccess;

            _session = _biometrics.OpenSession();
        }