wxr
2022-09-27 47769b2c2554d2b0f37237c1658044bd3a5bb6f7
HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -1296,14 +1296,17 @@
            view.AddChidren(btnAcstPower);
            btnAcstPower.MouseUpEventHandler = (sender, e) => {
                btnAcstPower.IsSelected = !btnAcstPower.IsSelected;
                string onoff = btnAcstPower.IsSelected ? "on" : "off";
                Dictionary<string, string> d = new Dictionary<string, string>();
                d.Add(FunctionAttributeKey.OnOff, onoff);
                foreach(var temp in FunctionList.List.GetAcstParentList())
                new System.Threading.Thread(() =>
                {
                    Control.Ins.SendWriteCommand(temp, d);
                }
                    string onoff = btnAcstPower.IsSelected ? "on" : "off";
                    Dictionary<string, string> d = new Dictionary<string, string>();
                    d.Add(FunctionAttributeKey.OnOff, onoff);
                    foreach (var temp in FunctionList.List.GetAcstParentList())
                    {
                        Control.Ins.SendWriteCommand(temp, d);
                    }
                })
                { IsBackground = true }.Start();
            };