From 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期四, 03 十二月 2020 15:35:42 +0800 Subject: [PATCH] 2020-12-03-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs index b8f1cc4..f839d4c 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs @@ -105,11 +105,15 @@ }; dateView.frameLayout.AddChidren(verticalRefresh); - //瀹氫箟涓�涓眬閮ㄥ彉閲忚褰曢�変腑鐘舵�� Button buttonClick = new Button(); HDL_ON.Entity.Scene sceneSelecetd = null; var sceneList = LogicMethod.GetSceneList(); + verticalRefresh.BeginHeaderRefreshingAction += () => + { + //鍏抽棴鍒锋柊View锛� + verticalRefresh.EndHeaderRefreshing(); + }; for (int i = 0; i < sceneList.Count; i++) { var scene = sceneList[i]; @@ -149,6 +153,8 @@ Output outputDevice = new Output(); outputDevice.target_type = "2"; outputDevice.sid = sceneSelecetd.sid; + //娌″暐浣滅敤锛屼负浜嗘暟鎹牸寮忕粺涓�,鍙戦�佹椂涓嶅啀鍒ゆ柇 + outputDevice.status = new List<Dictionary<string, string>> { new Dictionary<string, string> { { "key", "scene"},{ "value", "0" } } }; AddOutput(outputDevice); fLayout.RemoveFromParent(); LogicMethod.RemoveAllView(); -- Gitblit v1.8.0