Exemple #1
0
        private void On_FingerDetect(object sender, FingerPrintArgs e)
        {
            if (!button1.Enabled)
            {
                byte[] newPrint = e.getPrint();
                string print    = Convert.ToBase64String(newPrint);

                // Post URL here
                PostAsync("", print);

                toolStripStatusLabel1.Text = "Processing Finger Print";
            }
        }
Exemple #2
0
        //private List<byte[]> GetFinger()
        //{
        //    //List<byte[]> temp = new List<byte[]>();
        //    //temp.Add(BitConverter.GetBytes(65));

        //    return temp;
        //}

        private void On_FingerDetect(object sender, FingerPrintArgs e)
        {
            if (!groupBox1.Enabled)
            {
                bool flag = false;
                foreach (byte[] temp in fingerList)
                {
                    if (temp.SequenceEqual(e.getPrint()))
                    {
                        flag = true;
                        break;
                    }
                }

                if (flag)
                {
                    login();
                }
                else
                {
                    label2.Text = "Invalid Finger Print, Please try again.";
                }
            }
        }