From 42fad29b1e280b512452f5552d1e9ce98474252e Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 17 五月 2021 09:40:14 +0800 Subject: [PATCH] 2021-05-17 1.在阿廖分支基础上增加iOS乐橙可视对讲功能,目前呼叫还有一点问题,偶尔会闪退,目前还没定位到原因 --- HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs | 18 ++++++++---------- 1 files changed, 8 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..184482a 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() { @@ -831,7 +829,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