From 3bedb23993745f97e5870eca160c9f00c053c44c Mon Sep 17 00:00:00 2001 From: JLChen <jlchen@JLChendeMac.local> Date: 星期五, 14 五月 2021 18:55:30 +0800 Subject: [PATCH] 实现门锁的UI --- HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs index 047b701..ee08deb 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs @@ -49,6 +49,17 @@ timeHorizonView.btnText.TextID = StringId.timeHorizon; viewLayout.AddChidren(timeHorizonView.FLayoutView()); + + //鏃ュ嚭/鏃ヨ惤/姝e崍 + LogicView.SelectTypeView timeSpecialView = new LogicView.SelectTypeView(); + timeSpecialView.frameLayout.Y = timeHorizonView.frameLayout.Bottom; + timeSpecialView.btnIcon.Visible = false; + timeSpecialView.btnText.X = Application.GetRealWidth(16); + timeSpecialView.btnLine.X = Application.GetRealWidth(16); + timeSpecialView.btnLine.Width = Application.GetRealWidth(375 - 16 - 16); + timeSpecialView.btnText.TextID = StringId.timespecia; + viewLayout.AddChidren(timeSpecialView.FLayoutView()); + #endregion #region 鏃堕棿鐐� 鏃堕棿鑼冨洿鐐瑰嚮浜嬩欢 @@ -78,7 +89,15 @@ TimeHorizon(fLayout, false, 0); }; + //鏃ュ嚭/鏃ヨ惤/姝e崍鐐瑰嚮浜嬩欢 + timeSpecialView.btnClick.MouseUpEventHandler += (sen, e) => + { + SpeciaTime speciaTime = new SpeciaTime(); + MainPage.BasePageView.AddChidren(speciaTime); + speciaTime.Show(); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; #endregion } -- Gitblit v1.8.0