Пример #1
0
 protected void OnDeviceFound(DeviceFoundEventArgs e)
 {
     if (DeviceFound != null)
     {
         DeviceFound(this, e);
     }
 }
Пример #2
0
 private void Rec_DeviceFound(object sender, DeviceFoundEventArgs e)
 {
     if (e.Device == null)
     {
         return;
     }
     if (e.Device.Name == null)
     {
         return;
     }
     if (e.Device.BondState == Bond.Bonded | e.Device.BondState == Bond.Bonding)
     {
         return;
     }
     ListAdapter.Add(e.Device.Name);
     FoundDevices.Add(e.Device);
 }