From af1cb3ecd0f4b0589e00b28f7f9edccf39e6e12b Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 10 九月 2020 16:15:11 +0800 Subject: [PATCH] 202009101 --- HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs | 132 ++++++++++++++++++++++--------------------- 1 files changed, 68 insertions(+), 64 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs index af59d9a..cae1f2d 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs @@ -9,18 +9,38 @@ { #region 鎺т欢鍒楄〃 FrameLayout bodyView; - + /// <summary> + /// 鍔熻兘鍚嶇О鏄剧ず鎸夐挳 + /// </summary> + Button btnFunctionName; + /// <summary> + /// 鍔熻兘鍚嶇О缂栬緫鎸夐挳 + /// </summary> + Button btnEditName; + /// <summary> + /// 浣嶇疆淇℃伅鏄剧ず鎸夐挳 + /// </summary> + Button btnLocationValues; + /// <summary> + /// 浣嶇疆淇℃伅璺宠浆缂栬緫鎸夐挳 + /// </summary> + Button btnLocationInfoRight; #endregion #region 灞�閮ㄥ彉閲� Function function; + /// <summary> + /// 鍚庨��鏃讹紝鍒锋柊涔嬪墠鐣岄潰鐨勬樉绀轰俊鎭� + /// </summary> + Action actionRefresh; #endregion - public FunctionBaseInfoSetPage(Function func) + public FunctionBaseInfoSetPage(Function func,Action action) { bodyView = this; function = func; + actionRefresh = action; } /// <summary> /// 鍔犺浇鐣岄潰 @@ -28,7 +48,7 @@ public void LoadPage() { bodyView.BackgroundColor = CSS_Color.BackgroundColor; - new PublicAssmebly().LoadTopView(bodyView, Language.StringByID(StringId.Setting)); + new TopViewDiv(bodyView, Language.StringByID(StringId.Setting)).LoadTopView(actionRefresh); #region name view var nameView = new FrameLayout() @@ -50,7 +70,7 @@ }; nameView.AddChidren(btnNameText); - var btnNameValues = new Button() + btnFunctionName = new Button() { X = Application.GetRealWidth(186), Width = Application.GetRealWidth(137), @@ -59,9 +79,9 @@ TextSize = CSS_FontSize.TextFontSize, Text = function.name, }; - nameView.AddChidren(btnNameValues); + nameView.AddChidren(btnFunctionName); - var btnEditName = new Button() + btnEditName = new Button() { X = Application.GetRealWidth(333), Gravity = Gravity.CenterVertical, @@ -81,17 +101,6 @@ Height = Application.GetRealHeight(1) }); - btnEditName.MouseUpEventHandler += (sender, e) => { - //鍒涘缓鍥炶皟浜嬩欢 - Action<string> callBackAction = (name) => - { - function.name = name; - DB_ResidenceData.residenceData.SaveResidenceData(); - }; - new PublicAssmebly().LoadDialog_EditParater(StringId.ChangeName, function.name, callBackAction); - }; - - #endregion #region 浣嶇疆绠$悊 @@ -103,7 +112,7 @@ }; bodyView.AddChidren(locationMagtView); - var btnLocationMagtText = new Button() + var btnLocationMagtTitle = new Button() { X = Application.GetRealWidth(16), Width = Application.GetRealWidth(160), @@ -112,9 +121,9 @@ TextSize = CSS_FontSize.SubheadingFontSize, TextID = StringId.LocationManagement, }; - locationMagtView.AddChidren(btnLocationMagtText); + locationMagtView.AddChidren(btnLocationMagtTitle); - var btnLocationValues = new Button() + btnLocationValues = new Button() { X = Application.GetRealWidth(186), Width = Application.GetRealWidth(137), @@ -125,7 +134,7 @@ }; locationMagtView.AddChidren(btnLocationValues); - var btnLocationMagtRight = new Button() + btnLocationInfoRight = new Button() { X = Application.GetRealWidth(339), Gravity = Gravity.CenterVertical, @@ -133,7 +142,7 @@ Height = Application.GetMinRealAverage(16), UnSelectedImagePath = "Public/RightIcon.png", }; - locationMagtView.AddChidren(btnLocationMagtRight); + locationMagtView.AddChidren(btnLocationInfoRight); locationMagtView.AddChidren( new Button() @@ -144,58 +153,53 @@ Width = Application.GetRealWidth(343), Height = Application.GetRealHeight(1) }); - btnLocationMagtRight.MouseUpEventHandler += (sender, e) => - { - SkipChooseRoomPage(); - }; #endregion #region 鍏变韩 - var sharedView = new FrameLayout() - { - Y = locationMagtView.Bottom, - Height = Application.GetRealHeight(55), - BackgroundColor = CSS_Color.MainBackgroundColor, - }; - bodyView.AddChidren(sharedView); + //var sharedView = new FrameLayout() + //{ + // Y = locationMagtView.Bottom, + // Height = Application.GetRealHeight(55), + // BackgroundColor = CSS_Color.MainBackgroundColor, + //}; + //bodyView.AddChidren(sharedView); - var btnSharedText = new Button() - { - X = Application.GetRealWidth(16), - Width = Application.GetRealWidth(160), - TextAlignment = TextAlignment.CenterLeft, - TextColor = CSS_Color.FirstLevelTitleColor, - TextSize = CSS_FontSize.SubheadingFontSize, - TextID = StringId.Shared, - }; - sharedView.AddChidren(btnSharedText); + //var btnSharedText = new Button() + //{ + // X = Application.GetRealWidth(16), + // Width = Application.GetRealWidth(160), + // TextAlignment = TextAlignment.CenterLeft, + // TextColor = CSS_Color.FirstLevelTitleColor, + // TextSize = CSS_FontSize.SubheadingFontSize, + // TextID = StringId.Shared, + //}; + //sharedView.AddChidren(btnSharedText); - var btnSharedRight = new Button() - { - X = Application.GetRealWidth(339), - Gravity = Gravity.CenterVertical, - Width = Application.GetMinRealAverage(16), - Height = Application.GetMinRealAverage(16), - UnSelectedImagePath = "Public/RightIcon.png", - }; - sharedView.AddChidren(btnSharedRight); + //var btnSharedRight = new Button() + //{ + // X = Application.GetRealWidth(339), + // Gravity = Gravity.CenterVertical, + // Width = Application.GetMinRealAverage(16), + // Height = Application.GetMinRealAverage(16), + // UnSelectedImagePath = "Public/RightIcon.png", + //}; + //sharedView.AddChidren(btnSharedRight); - sharedView.AddChidren( - new Button() - { - Gravity = Gravity.CenterHorizontal, - Y = Application.GetRealHeight(54), - BackgroundColor = CSS_Color.DividingLineColor, - Width = Application.GetRealWidth(343), - Height = Application.GetRealHeight(1) - }); - + //sharedView.AddChidren( + // new Button() + // { + // Gravity = Gravity.CenterHorizontal, + // Y = Application.GetRealHeight(54), + // BackgroundColor = CSS_Color.DividingLineColor, + // Width = Application.GetRealWidth(343), + // Height = Application.GetRealHeight(1) + // }); #endregion #region 娣诲姞鍒版闈� var addToDesktopView = new FrameLayout() { - Y = sharedView.Bottom, + Y = locationMagtView.Bottom, Height = Application.GetRealHeight(55), BackgroundColor = CSS_Color.MainBackgroundColor, }; @@ -224,7 +228,7 @@ #endregion - + LoadEventList(); } -- Gitblit v1.8.0