From d1af1b8337591363e60c286348501a841138dbb3 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 24 十二月 2020 16:00:09 +0800 Subject: [PATCH] 20201224-3 --- HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs index 446a903..a139048 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TargetDeviceFunList.cs @@ -290,7 +290,8 @@ { foreach (var dictionary in dicSateteList) { - if (dictionary["key"] == "on_off") + string keyValue = dictionary["key"]; + if (keyValue == "on_off") { if (dictionary["value"] == "off") { @@ -501,14 +502,10 @@ private void BrightnessMethod(Entity.Function device, Button button, string titleName) { #region 鐣岄潰 - FrameLayout frame = new FrameLayout - { - BackgroundColor = CSS.CSS_Color.viewTrans60lucence, - }; - this.AddChidren(frame); + //涔嬪墠鐨勭姸鎬佸�� string stateVlaue = button.Text; LogicView.BrightnessView brightness = new LogicView.BrightnessView(); - brightness.FLayoutView(frame, titleName, stateVlaue, (brightnesValue) => + brightness.FLayoutView(this, titleName, stateVlaue, (brightnesValue) => { //鐣岄潰鏄剧ず閫変腑鍊� button.Text = brightnesValue+"%"; -- Gitblit v1.8.0