Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
 }
Ejemplo n.º 4
0
 private BluetoothDevice CreateBluetoothDevice(NativeMethods.BLUETOOTH_DEVICE_INFO deviceInfo)
 {
     return(new BluetoothDevice(this, deviceInfo));
 }
 public BluetoothDeviceInfoEventArgs(NativeMethods.BLUETOOTH_DEVICE_INFO bluetoothDeviceInfo)
 {
     this.bluetoothDeviceInfo = bluetoothDeviceInfo;
 }