qin
2025-03-18 0703b59b678427ed79b268e0a12c1900482132bd
WinFrmUI/IBox.WinFrmUI/Form/IBoxFormSystemInfo.cs
@@ -5,10 +5,7 @@
{
    public partial class IBoxFormSystemInfo : DocumentPage
    {
        private string startCode = "[&start&]";
        private string endCode = "[&end&]";
        private string paramCode = "[&param&]";
        private string getstoreCode = "getstore";
        public IBoxFormSystemInfo()
        {
            this.PageTitle.Caption = "设备信息";
@@ -18,15 +15,19 @@
        private void EboxFormSystemInfo_Load(object sender, EventArgs e)
        {
            Thread.Sleep(500);
            SendText(startCode + getstoreCode + paramCode + endCode);
            SendText(IBoxHelper.startCode + IBoxHelper.getstoreCode + IBoxHelper.paramCode + IBoxHelper.endCode);
        }
        public event EventHandler<string> SendData;
        private void SendText(string content)
        {
            //BluetoothHelper.GetInstance().SendData(content);
            SendData?.Invoke(null, content);
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isBlue"></param>
        public void BindData(SystemInfoViewModel model, bool isBlue)
        {
            textEdit1.Text = model.Lan0IpAddress.Replace("\n", "");
@@ -45,7 +46,6 @@
        private Dictionary<string, string> GetDuDic(string du)
        {
            //8.2M:/usr/ebox/Data; 生成Dictionary<string,string>
            return du.Substring(0, du.Length - 1).Split(';').Select(c => c.Split(':')).ToDictionary(b => b[1], b => b[0]);
        }