Beispiel #1
0
 private void buttonLocateSensor_Click(object sender, EventArgs e)
 {
     ThreadPool.QueueUserWorkItem(delegate
     {
         Log("Locating sensor...");
         try
         {
             var unitId = WinBio.LocateSensor(_session);
             Log(string.Format("Sensor located: unit id {0}", unitId));
         }
         catch (WinBioException ex)
         {
             Log(ex);
         }
     });
 }
Beispiel #2
0
 private void buttonLocateSensor_Click(object sender, EventArgs e)
 {
     ThreadPool.QueueUserWorkItem(delegate
     {
         Log("Locating sensor...");
         try
         {
             _unitId = WinBio.LocateSensor(_session);
             Log(string.Format("Sensor located: unit id {0}", _unitId));
             setComboxSelectedIndex(comboUnitId, comboUnitId.Items.IndexOf(_unitId));
         }
         catch (WinBioException ex)
         {
             Log(ex);
         }
     });
 }
Beispiel #3
0
 public int LocateSensor()
 {
     return(WinBio.LocateSensor(_handle));
 }