WinFrmUI/IBox.WinFrmUI/BluetoothHelper.cs
@@ -27,7 +27,9 @@ } return _Instance; } int _length = 1; private int _length = 1; #endregion 单例 #region 信息状态 @@ -66,8 +68,14 @@ public BluetoothHelper() { var radio = BluetoothRadio.Default;//获取当前PC的蓝牙适配器 IsRun = (null != radio); try { var radio = BluetoothRadio.Default;//获取当前PC的蓝牙适配器 IsRun = (null != radio); } catch { } if (!IsRun) OnSysMessage("无可用蓝牙"); }