Пример #1
0
        private async void btnDisconnect_Copy16_Click(object sender, RoutedEventArgs e)
        {
            textBlock1.Text = "";

            fgCollectEigenvalueUpload cmd = new fgCollectEigenvalueUpload( );
            CommonResult ret = await FingerprintDevice.Execute(cmd);

            if (FingerprintDevice.LastExecuteResult.Code != ResultCode.GN_SUCCESS)
            {
                textBlock1.Text = "Collect sample fingerprint fail. Result: " + FingerprintDevice.LastExecuteResult.Message + "\r\n";
                return;
            }

            fgDownloadEigenvalueCompareDSP1N cmdD = new fgDownloadEigenvalueCompareDSP1N(cmd.Eigenvalue);
            CommonResult retD = await FingerprintDevice.Execute(cmdD);

            textBlock1.Text += "Result: " + FingerprintDevice.LastExecuteResult.Message + "\r\n";
            textBlock1.Text += "Download fingerprint compare DSP 1:N result fingerprint id : " + cmdD.ID.ToString( );
        }
Пример #2
0
        private async void btnDisconnect_Copy18_Click(object sender, RoutedEventArgs e)
        {
            textBlock1.Text = "";

            fgCollectEigenvalueUpload cmd = new fgCollectEigenvalueUpload( );
            CommonResult ret = await FingerprintDevice.Execute(cmd);

            if (FingerprintDevice.LastExecuteResult.Code != ResultCode.GN_SUCCESS)
            {
                textBlock1.Text  = "Result: " + FingerprintDevice.LastExecuteResult.Message + "\r\n";
                textBlock1.Text += "Collect fingerprint fail.";
                return;
            }

            fgDownloadEigenvalue cmdD = new fgDownloadEigenvalue(cmd.Eigenvalue, Convert.ToUInt16(textBox.Text), 1);
            CommonResult         ret2 = await FingerprintDevice.Execute(cmdD);

            textBlock1.Text += "Result: " + FingerprintDevice.LastExecuteResult.Message + "\r\n";
        }
Пример #3
0
        private async void btnDisconnect_Copy14_Click(object sender, RoutedEventArgs e)
        {
            textBlock1.Text = "";

            fgCollectEigenvalueUpload cmd = new fgCollectEigenvalueUpload( );
            CommonResult ret = await FingerprintDevice.Execute(cmd);

            textBlock1.Text = "Result: " + FingerprintDevice.LastExecuteResult.Message + "\r\n";
            if (FingerprintDevice.LastExecuteResult.Code == ResultCode.GN_SUCCESS)
            {
                textBlock1.Text += "Fingerprint eigenvalue data len: " + cmd.Eigenvalue.Length.ToString( ) + "\r\n";
            }


            fgDownloadEigenvalueCompare cmdD = new fgDownloadEigenvalueCompare(cmd.Eigenvalue);

            ret = await FingerprintDevice.Execute(cmdD);

            textBlock1.Text += "Result: " + FingerprintDevice.LastExecuteResult.Message + "\r\n";
        }