public bool InitFingerPrint(string ReaderSerialNumber, string FingerSerialNumber)
        {
            if (myFinger != null)
            {
                myFinger.SetTextBox("Request InitFingerprint ", DateTime.Now);
            }
            string fingerSerial = null;

            if (FingerSerialNumber != null)
            {
                if (!FingerSerialNumber.Contains("{"))
                {
                    fingerSerial = "{" + FingerSerialNumber;
                }
                else
                {
                    fingerSerial = FingerSerialNumber;
                }

                if (!FingerSerialNumber.Contains("}"))
                {
                    fingerSerial += "}";
                }

                Guid guid;
                if (!IsGuid(fingerSerial, out guid))
                {
                    return(false);
                }
            }

            if (myFinger != null)
            {
                ReleaseFingerprint();
            }

            myFinger = new VerifyFinger(NotifyEvent, textBox, ReaderSerialNumber, fingerSerial, false);

            myFinger.debugFP            = debugFP;
            myFinger.debugFPFormVisible = debugFPFormVisible;
            myFinger.debugWindowTimeout = debugWindowTimeout;
            myFinger.sendDebugMail      = sendDebugMail;
            myFinger.debugOnFailedOnly  = debugOnFailedOnly;
            return(true);
        }
        public void InitFingerPrint(string ReaderSerialNumber, bool bUseEmbedDB)
        {
            if (myFinger != null)
            {
                myFinger.SetTextBox("Request InitFingerprint ", DateTime.Now);
            }
            string serialFinger = null;

#if UseSQLITE
            if (ReaderSerialNumber != null)
            {
                DBClassFinger dbJob = new DBClassFinger();
                serialFinger = dbJob.GetSerialNumberFinger(ReaderSerialNumber);
            }
#endif
            myFinger = new VerifyFinger(NotifyEvent, textBox, ReaderSerialNumber, serialFinger, bUseEmbedDB);
            updateProperty();
        }
 public FingerPrintClass()
 {
     myFinger = null;
     textBox  = null;
 }