예제 #1
0
 private Dictionary <Fingers, FingerprintTemplate> Capture(string sensor, bool showRegisteredFingers)
 {
     using (var dlg = new dlgCaptureFingerPrint(sensor, this, griauleLibrary))
     {
         //Set options
         if (CaptureMultiple)
         {
             CloseOnCapture = false;
         }
         dlg.CloseOnCapture  = CloseOnCapture;
         dlg.CaptureMultiple = CaptureMultiple;
         if (AllowOptionChange)
         {
             dlg.Height = 298;
         }
         else
         {
             dlg.Height = 276;
         }
         //Get fingers previously captured for the active individual
         if (showRegisteredFingers)
         {
             dlg.RegisteredFingers = GetRegisteredFingers();
         }
         //Show fingerprint capture dialog
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             return(dlg.CapturedFingers);
         }
         else
         {
             return(new Dictionary <Fingers, FingerprintTemplate>()); //Return empty list
         }
     }
 }
예제 #2
0
 private Dictionary<Fingers, FingerprintTemplate> Capture(string sensor, bool showRegisteredFingers)
 {
     using (var dlg = new dlgCaptureFingerPrint(sensor, this, griauleLibrary))
       {
     //Set options
     if (CaptureMultiple)
       CloseOnCapture = false;
     dlg.CloseOnCapture = CloseOnCapture;
     dlg.CaptureMultiple = CaptureMultiple;
     if (AllowOptionChange)
       dlg.Height = 298;
     else
       dlg.Height = 276;
     //Get fingers previously captured for the active individual
     if (showRegisteredFingers) dlg.RegisteredFingers = GetRegisteredFingers();
     //Show fingerprint capture dialog
     if (dlg.ShowDialog() == DialogResult.OK)
     {
       return dlg.CapturedFingers;
     }
     else
     {
       return new Dictionary<Fingers, FingerprintTemplate>(); //Return empty list
     }
       }
 }