From 4e7c1dd0767d551ec3194ead9f3de0a219a802c3 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 25 九月 2023 17:24:37 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into wxr-2.1 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 40 ++++++++++++++++++++++++++++++---------- 1 files changed, 30 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..637399a 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,21 +1215,21 @@ { var list =CommonMethod.Current.GetVideoDoorLockList(); var form = new VideoDoorLockListPage(()=> { - functionContentView?.RemoveFromParent(); - this.RefreshFunctionView(); + UpdateBottomView(); }); form.AddForm(list); }; break; case ShowFunction.Aks: + + btnFunctionViewBg.UnSelectedImagePath = "FunctionIcon/FunctionBg/AksFunctionBg.png"; //鍩冨厠鏂奖闊充腑鎺� btnName.TextID = StringId.jiatingyingyuan; btnFunctionViewBg.MouseUpEventHandler = (sender, e) => { 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 +1251,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 +1798,18 @@ { } -#endregion + #endregion + + /// <summary> + /// 鏇存柊搴曢儴鐣岄潰 + /// </summary> + void UpdateBottomView() + { + Application.RunOnMainThread(() => + { + functionContentView?.RemoveFromParent(); + this.RefreshFunctionView(); + }); + } } } -- Gitblit v1.8.0