From 8a6e9d98622d4c133f2ba2770045bdf32cd40696 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 17 十一月 2022 20:58:04 +0800 Subject: [PATCH] 数据备份 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 55 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 29 insertions(+), 26 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index a6a5bd7..ceb3c17 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -193,7 +193,10 @@ #if DEBUG btnResidenceName.MouseUpEventHandler = (sender, e) => { - + //827a98c98da7469b8bc19bb6a3c7651906 + //St_00009073b431d8b2490c9df0c5cb0e73 + Com.Hdl.HdlToLc.InitData(Shared.Application.Activity,false, "827a98c98da7469b8bc19bb6a3c7651906"); + Com.Hdl.HdlToLc.OpenActivity(); }; #endif @@ -1257,31 +1260,31 @@ }; - Button btnAcstPower = new Button() - { - X = Application.GetRealWidth(115), - Y = Application.GetRealHeight(70), - Width = Application.GetRealWidth(32), - Height = Application.GetRealWidth(32), - SelectedImagePath = "Public/PowerOpen.png", - UnSelectedImagePath = "Public/PowerClose.png", - IsSelected = function.trait_on_off.curValue.ToString() == "on", - }; - view.AddChidren(btnAcstPower); - btnAcstPower.MouseUpEventHandler = (sender, e) => { - btnAcstPower.IsSelected = !btnAcstPower.IsSelected; - 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(); - }; + //Button btnAcstPower = new Button() + //{ + // X = Application.GetRealWidth(115), + // Y = Application.GetRealHeight(70), + // Width = Application.GetRealWidth(32), + // Height = Application.GetRealWidth(32), + // SelectedImagePath = "Public/PowerOpen.png", + // UnSelectedImagePath = "Public/PowerClose.png", + // IsSelected = function.trait_on_off.curValue.ToString() == "on", + //}; + //view.AddChidren(btnAcstPower); + //btnAcstPower.MouseUpEventHandler = (sender, e) => { + // btnAcstPower.IsSelected = !btnAcstPower.IsSelected; + // 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(); + //}; -- Gitblit v1.8.0