From cda2410f9c29f2fadc16e9de38ccae95b75a89dd Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 09 六月 2021 10:51:13 +0800 Subject: [PATCH] 1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 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..c1fc7aa 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Weather.cs @@ -45,9 +45,16 @@ weatherView.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); 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 鎵�鏈夌偣鍑讳簨浠� //瀹ゅ娓┿�佹箍搴︺�丳M2.5鍙樺寲 airqualityView.btnClick.MouseUpEventHandler += (sen, e) => { @@ -64,7 +71,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