public void CopyTo(BluetoothDeviceCollection array, System.Int32 index)
 {
     devices.CopyTo(array.devices.ToArray(), index);
 }
示例#2
0
文件: Form1.cs 项目: hjgode/btprint
 void listPairedDevices()
 {
     listBox1.Items.Clear();
     ddump("Local bt mac: "+btr.getLocalBtAddressStr());
     btdc = btr.PairedDevices;
     foreach (BluetoothDevice bd in btdc)
     {
         ddump("Found paired device: " + bd.AddressStr + ", '" + bd.Name + "'");
         listBox1.Items.Add(bd);
     }
 }
 public void CopyTo(BluetoothDeviceCollection array, System.Int32 index)
 {
     devices.CopyTo(array.devices.ToArray(), index);
 }