duheng
2025-03-17 4d5e66a89deaa00b095178cd64064597d20583ae
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("无可用蓝牙");
        }