internal BluetoothDevice(BluesoleilService owner, NativeMethods.BLUETOOTH_DEVICE_INFO deviceInfo) { this.owner = owner; this.deviceInfo = deviceInfo; int zeroIndex = Array.IndexOf<byte>(deviceInfo.szName, 0); this.name = Encoding.ASCII.GetString(deviceInfo.szName, 0, zeroIndex); address = deviceInfo.address; }
internal BluetoothDevice(BluesoleilService owner, NativeMethods.BLUETOOTH_DEVICE_INFO deviceInfo) { this.owner = owner; this.deviceInfo = deviceInfo; int zeroIndex = Array.IndexOf <byte>(deviceInfo.szName, 0); this.name = Encoding.ASCII.GetString(deviceInfo.szName, 0, zeroIndex); address = deviceInfo.address; }
public BluetoothDeviceInfoEventArgs(NativeMethods.BLUETOOTH_DEVICE_INFO bluetoothDeviceInfo) { this.bluetoothDeviceInfo = bluetoothDeviceInfo; }
private BluetoothDevice CreateBluetoothDevice(NativeMethods.BLUETOOTH_DEVICE_INFO deviceInfo) { return(new BluetoothDevice(this, deviceInfo)); }
public BluetoothDeviceInfoEventArgs(NativeMethods.BLUETOOTH_DEVICE_INFO bluetoothDeviceInfo) { this.bluetoothDeviceInfo = bluetoothDeviceInfo; }