From 5266531a3a1552a11a29473974481d60100812c6 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 04 三月 2021 19:24:44 +0800 Subject: [PATCH] Merge branch 'temp-wxr' into NewFilePath --- HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs index ebe9a20..f0a079e 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs @@ -102,10 +102,10 @@ break; } - var powerLowTipAttr = function.status.Find((obj) => obj.key == FunctionAttributeKey.BatteryState); + var powerLowTipAttr = function.attributes.Find((obj) => obj.key == FunctionAttributeKey.BatteryState); if (powerLowTipAttr != null) { - if (powerLowTipAttr.value.ToLower() == "low") + if (powerLowTipAttr.state.ToLower() == "low") { Button btnTipPowerLow = new Button() { @@ -429,7 +429,7 @@ SelectedImagePath = "FunctionIcon/Electrical/ClothesHanger/ClothesHangerDownIcon1On.png", }; bodyDiv.AddChidren(btnClothesHangerDown); - LoadEvent_ControlClothesHanger(function, btnClothesHangerDown, btnClothesHangerUp); + LoadEvent_ControlClothesHanger(function, btnClothesHangerUp, btnClothesHangerDown); #endregion -- Gitblit v1.8.0