From 23bbed132eea46eef51c6d01c21b346238e29ee2 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 30 六月 2022 13:39:12 +0800 Subject: [PATCH] Merge branch 'wxr0114' into V1.5.9 --- HDL_ON/UI/UI2/2-Classification/FunctionPage.cs | 32 ++++++++++++++++++++++++++------ 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs index 624ea5d..0d410f0 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs @@ -70,7 +70,32 @@ #if DEBUG - + Button testBtn = new Button() + { + X = Application.GetRealWidth(80), + Height = Application.GetRealHeight(64), + BackgroundColor = 0xFFFF0000 + }; + bodyView.AddChidren(testBtn); + int ddd = 0; + testBtn.MouseUpEventHandler = (sender, e) => { + ddd++; + + Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101"); + if (ddd % 2 == 0) + { + function_online.online = true; + } + else + { + function_online.online = false; + } + HomePage.LoadEvent_RefreshDevcieOnline(function_online); + FunctionPage.UpdataOnline(function_online); + RoomPage.UpdataOnline(function_online); + + + }; #endif /// <summary> @@ -114,7 +139,6 @@ }; bodyView.AddChidren(functionListView); - //Tag 鏄剧ず鍒楄〃 if (titleId == StringId.Lights) { functionList.AddRange(FunctionList.List.GetLightList()); @@ -157,10 +181,6 @@ else if (titleId == StringId.FreshAir) { functionList.AddRange(FunctionList.List.GetAirFreshList()); - } - else if (titleId == StringId.SmartPanel) - { - functionList.AddRange(FunctionList.List.GetPanelList()); } functionList.OrderByDescending(o => o.controlCounter).ToList(); -- Gitblit v1.8.0