Exemple #1
0
        private async void ConnectButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                OpenDevice();
                _isVerified = await _fingerPrint.VerifyPassword(new byte[] { 0x00, 0x00, 0x00, 0x00 });

                if (_isVerified)
                {
                    StatusText.Text = @"FingerPrinte Device Ready To Work.";
                }
            }
            catch (Exception ex)
            {
                StatusText.Text = "System Error please try again";
            }
        }
        private async void ConnectButton_Click(object sender, EventArgs e)
        {
            try
            {
                OpenDevice();
                _isVerified = await _fingerPrint.VerifyPassword(new byte[] { 0x00, 0x00, 0x00, 0x00 });

                if (_isVerified)
                {
                    StatusLabel.Text = @"FingerPrinte Device Ready To Work.";
                }
            }
            catch (Exception ex)
            {
                OnError(ex.Message);
            }
        }