wxr
2023-04-11 cd70a2a8a2bdebf51259d8f39ed110a34b9be9e5
HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs
@@ -226,19 +226,25 @@
                }
                Application.RunOnMainThread(() =>
                {
                    AcstSubControlView view = null;
                    basePage.subViewList.TryGetValue(temp.sid,out view);
                    if (view != null)
                    try
                    {
                        view.btnSubHumidityValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()) + "%";
                        view.btnSubTempValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()) + "°";
                        view.btnSubPower.IsSelected = temp.GetAttrState(AcstSub_AttrEnum.on_off.ToString()) == "on";
                        AcstSubControlView view = null;
                        basePage.subViewList.TryGetValue(temp.sid, out view);
                        if (view != null)
                        {
                            view.btnSubHumidityValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()) + "%";
                            view.btnSubTempValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()) + "°";
                            view.btnSubPower.IsSelected = temp.GetAttrState(AcstSub_AttrEnum.on_off.ToString()) == "on";
                        }
                    }
                    catch (Exception ex ) {
                        MainPage.Log($"科技系统更新异常1:{ex.Message}");
                    }
                });
            }
            catch (Exception ex)
            {
                MainPage.Log("科技系统更新异常11");
                MainPage.Log($"科技系统更新异常123:{ex.Message}");
            }
        }
@@ -643,11 +649,14 @@
                            AcstSubControlView subFunctionView = new AcstSubControlView(sub, subFunctionListView, imageFolder);
                            subViewList.Add(sub.sid, subFunctionView);
                            new System.Threading.Thread(() =>
                            if (basePage != null)
                            {
                                Control.Ins.SendReadCommand(sub);
                            })
                            { IsBackground = true }.Start();
                                new System.Threading.Thread(() =>
                                {
                                    Control.Ins.SendReadCommand(sub);
                                })
                                { IsBackground = true }.Start();
                            }
                        subFunctionCount++;
                        });