From efad979b6fae76fb37a4de7e94e6bac0a85cb72c Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 30 十一月 2021 13:14:28 +0800 Subject: [PATCH] 2021-11-30 1.修复乐橙Android,没调用拒接接口问题。 --- HDL_ON/UI/UI0-Public/TopViewDiv.cs | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs index 9ebf6a1..688ede5 100644 --- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs +++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs @@ -158,11 +158,39 @@ } /// <summary> + /// 鐏厜鍔熻兘鍒楄〃鐣岄潰 + /// 甯︾粍鍚堣皟鍏夌紪杈� + /// </summary> + /// <param name="backAction"></param> + /// <param name="editAction"></param> + public void LoadTopView_LightFunction( Action editAction) + { + LoadTopView(); + + var btnSetting = new Button() + { + X = Application.GetRealWidth(337), + Y = Application.GetRealHeight(29), + Width = Application.GetMinRealAverage(28), + Height = Application.GetMinRealAverage(28), + UnSelectedImagePath = "FunctionIcon/Light/LightScene/SetLightSceneIcon.png", + }; + + contentView.AddChidren(btnSetting); + btnSetting.MouseUpEventHandler = (sender, e) => + { + editAction(); + }; + } + + + + /// <summary> /// 鍚慺ramelayout娣诲姞椤堕儴鍖哄煙,鎷ユ湁閰嶇疆鍥炬爣鎸夐挳 /// </summary> /// <param name="frame"></param> /// <param name="tilte"></param> - public void LoadTopView_FunctionTop(Function function, Action action) + public void LoadTopView_FunctionTop(Function function, Action action,bool locationSet = true) { backAction = action; @@ -186,7 +214,7 @@ { var infoView = new FunctionBaseInfoSetPage(function, action); MainPage.BasePageView.AddChidren(infoView); - infoView.LoadPage(); + infoView.LoadPage(locationSet); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; } @@ -376,7 +404,7 @@ Height = Application.GetMinRealAverage(28), UnSelectedImagePath = "FunctionIcon/ArmCenter/HistoryIcon.png", }; - contentView.AddChidren(btnAddIcon); + //contentView.AddChidren(btnAddIcon); btnAddIcon.MouseUpEventHandler += (sender, e) => { -- Gitblit v1.8.0