@@ -73,7 +73,7 @@ protected override void OnLoad(EventArgs e)
73
73
Log ( string . Format ( " Firmware: {0}" , strFirmwareVersion ) ) ;
74
74
75
75
int lastInvSlash = units [ i ] . DeviceInstanceId . LastIndexOf ( "\\ " ) ;
76
- Log ( string . Format ( " sn : {0}" ,
76
+ Log ( string . Format ( " Key code : {0}" ,
77
77
strDeviceInstanceId . Substring ( lastInvSlash + 1 , strDeviceInstanceId . Length - lastInvSlash - 1 ) ) ) ;
78
78
}
79
79
@@ -315,20 +315,22 @@ private string getFirmwareVersion(string deviceInstanceId)
315
315
316
316
private void IdentifyTheKeyLED_Click ( object sender , EventArgs e )
317
317
{
318
- try
319
- {
320
- WinBioRejectDetail rejectDetail ;
321
- Log ( string . Format ( "Please touch session: unit id {0} in flashing" , _unitId ) ) ;
322
- WinBio . EnrollBegin ( _session , WinBioBiometricSubType . LhThumb , _unitId ) ;
323
- WinBio . EnrollCapture ( _session , out rejectDetail ) ;
324
- WinBio . EnrollDiscard ( _session ) ;
325
- Log ( string . Format ( "Done" ) ) ;
326
- }
327
- catch ( WinBioException ex )
318
+ ThreadPool . QueueUserWorkItem ( delegate
328
319
{
329
- //ignore
330
- }
331
-
320
+ try
321
+ {
322
+ WinBioRejectDetail rejectDetail ;
323
+ Log ( string . Format ( "Please touch session: unit id {0} in flashing" , _unitId ) ) ;
324
+ WinBio . EnrollBegin ( _session , WinBioBiometricSubType . LhThumb , _unitId ) ;
325
+ WinBio . EnrollCapture ( _session , out rejectDetail ) ;
326
+ WinBio . EnrollDiscard ( _session ) ;
327
+ Log ( string . Format ( "Done" ) ) ;
328
+ }
329
+ catch ( WinBioException ex )
330
+ {
331
+ //ignore
332
+ }
333
+ } ) ;
332
334
}
333
335
}
334
336
}
0 commit comments