From 5bfb959c47017825c8cf7dc8570c55b04dab694c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 09 六月 2021 16:42:11 +0800 Subject: [PATCH] Merge branch 'dev-tzy' into wxr6 --- HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs index 53bba3f..b31cb89 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs @@ -35,6 +35,7 @@ airqualityView.btnLine.X = Application.GetRealWidth(16); airqualityView.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); airqualityView.btnText.TextID =StringId.shuwaigongneng; + airqualityView.btnText.Width = Application.GetRealWidth(280); viewLayout.AddChidren(airqualityView.FLayoutView()); //澶╂皵鍙樺寲(鍩庡競澶╂皵) LogicView.SelectTypeView weatherView = new LogicView.SelectTypeView(); @@ -46,6 +47,15 @@ weatherView.btnText.TextID = StringId.tianqibianhua; viewLayout.AddChidren(weatherView.FLayoutView()); + //绌烘皵璐ㄩ噺 + LogicView.SelectTypeView kongqiViewk = new LogicView.SelectTypeView(); + kongqiViewk.frameLayout.Y = weatherView.frameLayout.Bottom; + kongqiViewk.btnIcon.Visible = false; + kongqiViewk.btnText.X = Application.GetRealWidth(16); + kongqiViewk.btnLine.X = Application.GetRealWidth(16); + kongqiViewk.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); + kongqiViewk.btnText.TextID = StringId.kongqizhiliang; + viewLayout.AddChidren(kongqiViewk.FLayoutView()); #endregion #region 鎵�鏈夌偣鍑讳簨浠� @@ -64,7 +74,14 @@ weatherCondition.Show(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; - + //绌烘皵璐ㄩ噺 + kongqiViewk.btnClick.MouseUpEventHandler += (sen, e) => { + AirQuality airQuality = new AirQuality(); + MainPage.BasePageView.AddChidren(airQuality); + airQuality.Show(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + #endregion } } -- Gitblit v1.8.0