From 9acd3887f1f8db40d59f991b1726a61aa7c7637c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 五月 2021 15:13:56 +0800
Subject: [PATCH] Merge branch 'CJL' into wxr4

---
 HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
index 4f9c820..a89fdc6 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
@@ -81,7 +81,7 @@
         /// </summary>
         Action refreshFunctionRowAction;
         /// <summary>
-        /// 鍥炴帀鏇存柊
+        /// 鍥炶皟鏇存柊
         /// </summary>
         Action backAction;
         public SceneAddPage(Scene s, Action act)
@@ -369,6 +369,8 @@
 
             LoadEventList();
         }
+
+
         /// <summary>
         /// 鍔犺浇鍔熻兘鍒楄〃
         /// </summary>
@@ -457,20 +459,16 @@
                 };
                 row.AddChidren(btnFunctionFloorAndRoom);
 
-                btnFunctionName.MouseUpEventHandler = (sender, e) =>
+                EventHandler<MouseEventArgs> skipEvent= (sender, e) =>
                 {
                     var ssf = new SceneFunctionInfoEditPage(scene, scenefunction, refreshFunctionRowAction);
                     MainPage.BasePageView.AddChidren(ssf);
                     ssf.LoadPage();
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                 };
-                btnFunctionFloorAndRoom.MouseUpEventHandler = (sender, e) =>
-                {
-                    var ssf = new SceneFunctionInfoEditPage(scene, scenefunction, refreshFunctionRowAction);
-                    MainPage.BasePageView.AddChidren(ssf);
-                    ssf.LoadPage();
-                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-                };
+
+                btnFunctionName.MouseUpEventHandler = skipEvent;
+                btnFunctionFloorAndRoom.MouseUpEventHandler = skipEvent;
 
                 Button btnDelSceneFunction = new Button()
                 {
@@ -804,6 +802,7 @@
         }
 
         /// <summary>
+        /// 鍒涘缓鍦烘櫙
         /// 瀹屾垚鎸夐挳鐐瑰嚮浜嬩欢
         /// </summary>
         void LoadEvent_CompleteEvent()
@@ -831,7 +830,7 @@
                 var waitPage = new Loading();
                 MainPage.BaseView.AddChidren(waitPage);
                 waitPage.Start(Language.StringByID(StringId.PleaseWait));
-                new System.Threading.Thread(() =>
+                new Thread(() =>
                 {
                     try
                     {

--
Gitblit v1.8.0