From 8e4dd3cdef1348bcf1285576bb946afb85ce2526 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 08 十二月 2020 17:31:27 +0800 Subject: [PATCH] 增加分享设备的时候,判断当前房间分享设备总数,从而决定是否需要增加或者移除房间分享 --- HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs index 3db439e..634e7b0 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs @@ -155,7 +155,7 @@ //娣诲姞涓�涓柊鐨勬椂闂寸偣鏉′欢 Logic.currlogic.input.Add(inputTime); } - RemoveViewByTag("Logic"); + LogicMethod.RemoveAllView(); AddLogic addLogic = new AddLogic(); MainPage.BasePageView.AddChidren(addLogic); addLogic.Show(); @@ -173,7 +173,6 @@ { #region 鐣岄潰甯冨眬 LogicView.TimeHorizonView timeHorizonView = new LogicView.TimeHorizonView(); - timeHorizonView.frameLayout.SetCornerWithSameRadius(12, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight | HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); timeHorizonView.FLayoutView(fLayout); //寮�濮嬫椂闂� LogicView.SelectTypeView startTimeView = new LogicView.SelectTypeView(); @@ -200,7 +199,7 @@ //缁撴潫鏃堕棿 LogicView.SelectTypeView endTimeView = new LogicView.SelectTypeView(); - endTimeView.frameLayout.SetCornerWithSameRadius(12, HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); + endTimeView.frameLayout.SetCornerWithSameRadius(Application.GetRealHeight(12), HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); endTimeView.frameLayout.Y = startTimeView.frameLayout.Bottom; endTimeView.btnIcon.Visible = false; endTimeView.btnLine.Visible = false; @@ -280,7 +279,7 @@ //娣诲姞涓�涓柊鐨勬椂闂寸偣鏉′欢 Logic.currlogic.input.Add(inputTime); } - RemoveViewByTag("Logic"); + LogicMethod.RemoveAllView(); AddLogic addLogic = new AddLogic(); MainPage.BasePageView.AddChidren(addLogic); addLogic.Show(); -- Gitblit v1.8.0