private void Wrapper_BLE_DeviceInfoGatheredOnGetInfo(object sender, BluetoothLEDeviceInfo info)
 {
     this.Dispatcher.Invoke(() => {
         this.wrapper.BLE_DeviceInfoGathered -= this.Wrapper_BLE_DeviceInfoGatheredOnGetInfo;
         this.gridWait.Collapse();
         DeviceInfo_BLE.ShowBox(this, info);
     });
 }
 private void btnInfoLE_Click(object sender, RoutedEventArgs e)
 {
     if (this.listBox_BLE.SelectedItem != null)
     {
         BluetoothLEDeviceInfo ble = this.listBox_BLE.SelectedItem as BluetoothLEDeviceInfo;
         if (ble.Services.Count == 0 && !ble.InfoAttempted)
         {
             this.wrapper.BLE_DeviceInfoGathered -= Wrapper_BLE_DeviceInfoGatheredOnGetInfo;
             this.wrapper.BLE_DeviceInfoGathered += Wrapper_BLE_DeviceInfoGatheredOnGetInfo;
             this.gridWait.Show();
             this.wrapper.BLE_GetInfo(ble);
         }
         else
         {
             DeviceInfo_BLE.ShowBox(this, ble);
         }
         //App.ShowMsg("BPIPO");
         //this.wrapper.BLE_GetDbgInfoStringDump(this.listBox_BLE.SelectedItem, App.ShowMsgTitle);
     }
 }
        public static void ShowBox(Window parent, BluetoothLEDeviceInfo info)
        {
            DeviceInfo_BLE win = new DeviceInfo_BLE(parent, info);

            win.ShowDialog();
        }