From 9904031f5291daaf56985146bb671f25e18ebbdf Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 02 四月 2020 19:51:31 +0800 Subject: [PATCH] 最新代码 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLighWithSensorForm.cs | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLighWithSensorForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLighWithSensorForm.cs index 870a8e0..79d580c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLighWithSensorForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLighWithSensorForm.cs @@ -73,29 +73,31 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); - listview = new VerticalScrolViewLayout(); - listview.Height = Application.GetRealHeight(1981 - 184); - bodyFrameLayout.AddChidren(listview); HdlThreadLogic.Current.RunMain(() => - { + { + listview = new VerticalScrolViewLayout(); + listview.Height = Application.GetRealHeight(1981 - 184); + bodyFrameLayout.AddChidren(listview); + //娣诲姞鑺傝兘妯″紡 this.AddEnergyConservationRow(); //娣诲姞鐐瑰嚮鍓嶏紝浜害杩涘害鏉� this.AddBeforeClickProgress(); //娣诲姞鐐瑰嚮鍚庯紝浜害杩涘害鏉� this.AddAfterClickProgress(); - }); - //瀹瑰櫒琛ュ厖 - FinishInitControl(listview); - //淇濆瓨 - var btnSave = new BottomClickButton(); - btnSave.TextID = R.MyInternationalizationString.uSave; - bodyFrameLayout.AddChidren(btnSave); - btnSave.ButtonClickEvent += (sender, e) => - { - //淇濆瓨闈㈡澘鏁版嵁 - this.SavePanelData(); - }; + + this.FinishInitControl(listview, energyModeInfo.enable); + + //淇濆瓨 + var btnSave = new BottomClickButton(); + btnSave.TextID = R.MyInternationalizationString.uSave; + bodyFrameLayout.AddChidren(btnSave); + btnSave.ButtonClickEvent += (sender, e) => + { + //淇濆瓨闈㈡澘鏁版嵁 + this.SavePanelData(); + }; + }); } #endregion -- Gitblit v1.8.0