From f703a411c0ebdf7ada490fda75b52fd839dae079 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 16 三月 2023 14:04:59 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-cqy(1.5.9)' into dev--wxr --- HDL_ON/UI/UI2/2-Classification/FunctionPage.cs | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs index 5ba2bed..64abe60 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionPage.cs @@ -267,6 +267,7 @@ Tag = function.spk + function.sid }; functionDiv.LoadFunctionDiv(); + functionDiv.OrderEvent = OrderEvent; functionListView.AddChidren(functionDiv); } else if (function.spk == SPK.IpCam_Imou) @@ -300,6 +301,7 @@ Tag = function.spk + function.sid }; functionDiv.LoadFunctionDiv(); + functionDiv.OrderEvent = OrderEvent; functionListView.AddChidren(functionDiv); } functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(10) }); @@ -346,7 +348,21 @@ }) { IsBackground = true }.Start(); } - + /// <summary> + /// 鎺掑簭浜嬩欢 + /// </summary> + void OrderEvent() + { + Action action = () => + { + functionList = functionList.OrderBy(o => o.FunctionOrderNumber).ToList(); + ShowFunctionRow(functionList); + }; + var skipView = new OrderFunctionPage(); + MainPage.BasePageView.AddChidren(skipView); + skipView.LoadPage(functionList, action); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + } ///// <summary> ///// 鍔犺浇鍔熻兘绫诲瀷鎺у埗鍗$墖 -- Gitblit v1.8.0