wxr
2022-09-27 47769b2c2554d2b0f37237c1658044bd3a5bb6f7
HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -1238,7 +1238,7 @@
                Width = Application.GetRealWidth(160),
                Height = Application.GetRealHeight(105),
                BackgroundColor = CSS_Color.MainBackgroundColor,
                Radius = (uint)Application.GetRealWidth(5),
                Radius = (uint)Application.GetRealWidth(15),
            };
            view1.AddChidren(view);
@@ -1259,7 +1259,7 @@
            var btnLogo = new Button()
            {
                Y = Application.GetRealWidth(90),
                Y = Application.GetRealWidth(85),
                UnSelectedImagePath = "FunctionIcon/Acst/LvJianLogo.png",
                SelectedImagePath = "FunctionIcon/Acst/LvJianLogo.png",
                Width = Application.GetRealWidth(80),
@@ -1296,11 +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);
                Control.Ins.SendWriteCommand(FunctionList.List.GetAcstParentList()[0], d);
                new System.Threading.Thread(() =>
                {
                    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();
            };