From 35a2888945bcf1b7ef6f34d30f1709b9c848fce6 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 16 十二月 2020 15:17:18 +0800
Subject: [PATCH] 111

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 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..602a55d 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddTarget.cs
@@ -47,10 +47,11 @@
             delayView.frameLayout.Y = sceneView.frameLayout.Bottom;
             delayView.btnText.TextID = StringId.delayLogic;
             delayView.btnIcon.UnSelectedImagePath = "LogicIcon/delayed.png";
-            viewLayout.AddChidren(delayView.FLayoutView());
+            //viewLayout.AddChidren(delayView.FLayoutView());
             #endregion
 
             #region  鎵�鏈夌偣鍑讳簨浠�
+            //鍔熻兘鐐瑰嚮浜嬩欢
             functionView.btnClick.MouseUpEventHandler += (sen, e) =>
             {
                 FunTpye funTpye = new FunTpye();
@@ -59,7 +60,7 @@
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
 
             };
-
+            //鍦烘櫙鐐瑰嚮浜嬩欢
             sceneView.btnClick.MouseUpEventHandler += (sen, e) =>
             {
 
@@ -70,7 +71,7 @@
                 this.AddChidren(fLayout);
                 SceneMethod(fLayout);
             };
-
+            //寤舵椂鐐瑰嚮浜嬩欢
             delayView.btnClick.MouseUpEventHandler += (sen, e) =>
             {
 
@@ -105,11 +106,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 +154,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