From 8f9f20698e1256a58ee6894a9bc168a9dfb37861 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 14 九月 2023 13:32:14 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into wxr-2.0 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 38 ++++++++++++++++++++++++++++---------- 1 files changed, 28 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 71742c1..66b07f4 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -717,9 +717,9 @@ functionCount = FunctionList.List.GetElectricals().Count; functionOnCount = FunctionList.List.GetElectricals().FindAll((obj) => obj.spk!=SPK.ElectricalTvHisense&&obj.trait_on_off.curValue.ToString() == "on").Count; -#if DEBUG - functionCount = 1; -#endif +//#if DEBUG +// functionCount = 1; +//#endif #endregion break; case ShowFunction.EnergyMonitoring: @@ -834,8 +834,10 @@ TextAlignment = TextAlignment.CenterLeft, IsMoreLines = true, }; - functionView.AddChidren(btnName); + functionView.AddChidren(btnName); + //涓嶉渶瑕佹樉绀鸿澶囧紑鐘舵�佹暟閲�; + Button btnFunctionCount=null; if (item != ShowFunction.Aks && item != ShowFunction.VideoDoorLock && item != ShowFunction.Environmental @@ -849,7 +851,7 @@ && item != ShowFunction.Acst && item != ShowFunction.IpCam && functionCount != 0) { - Button btnFunctionCount = new Button() + btnFunctionCount = new Button() { X = Application.GetRealWidth(17) + Application.GetRealWidth(7 * functionCount.ToString().Length), Y = btnName.Bottom, @@ -1213,8 +1215,7 @@ { var list =CommonMethod.Current.GetVideoDoorLockList(); var form = new VideoDoorLockListPage(()=> { - functionContentView?.RemoveFromParent(); - this.RefreshFunctionView(); + UpdateBottomView(); }); form.AddForm(list); }; @@ -1226,8 +1227,7 @@ { var list = HDL_ON.UI.UI2.FuntionControlView.Aks.AksCommonMethod.Current.GetVideoControlsList(); var form = new HDL_ON.UI.UI2.FuntionControlView.Aks.AksListPage(() => { - functionContentView?.RemoveFromParent(); - this.RefreshFunctionView(); + UpdateBottomView(); }); form.AddForm(list); }; @@ -1249,10 +1249,16 @@ { btnFunctionViewBg.MouseUpEventHandler = (sender, e) => { + var skipView = new FunctionPage(); MainPage.BasePageView.AddChidren(skipView); skipView.LoadPage(functionPageTitleId); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + skipView.DelAction += () => + { + + UpdateBottomView(); + }; }; } index++; @@ -1790,6 +1796,18 @@ { } -#endregion + #endregion + + /// <summary> + /// 鏇存柊搴曢儴鐣岄潰 + /// </summary> + void UpdateBottomView() + { + Application.RunOnMainThread(() => + { + functionContentView?.RemoveFromParent(); + this.RefreshFunctionView(); + }); + } } } -- Gitblit v1.8.0