From 652243206427f35a256400a149a1734085824cb9 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 02 九月 2020 17:35:03 +0800 Subject: [PATCH] 2020-09-02-4 --- ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs | 67 +++++++++++++++++---------------- 1 files changed, 35 insertions(+), 32 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs old mode 100644 new mode 100755 index 3d0f6c6..adbd012 --- a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs @@ -7,6 +7,7 @@ using ZigBee.Device; using Shared.Phone.Device.Logic.LogicView; + namespace Shared.Phone.Device.Logic { @@ -18,17 +19,17 @@ } public void Show() { - #region 涓婇潰鐨勫竷灞�浠g爜 + + #region 鐣岄潰鐨勫竷灞�浠g爜 TopView view = new TopView(); this.AddChidren(view.TopRowView()); view.toptitleNameBtn.TextID = MyInternationalizationString.selection; - view.clickBtn.MouseDownEventHandler += (sender, e) => { RemoveFromParent(); }; - #endregion - #region 鏈�涓嬮潰鐨勫竷灞�浠g爜 + view.clickBtn.MouseDownEventHandler += (sender, e) => { RemoveFromParent(); }; + var middle = new FrameLayout { Y = view.topRowLayout.Bottom, - Height = Application.GetRealHeight(1920 - 184), + Height = Application.GetRealHeight(Method.H - 184), BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, }; this.AddChidren(middle); @@ -37,41 +38,21 @@ timeView.iconBtn.UnSelectedImagePath = "ZigeeLogic/time.png"; timeView.funnameBtn.TextID = MyInternationalizationString.timecondition; middle.AddChidren(timeView.FunFrameView()); - timeView.clickviewBtn.MouseUpEventHandler += (sender, e) => - { - TimeView(); - }; + ///璁惧 FunView functionView = new FunView(); functionView.funFrameLayout.Y = timeView.funFrameLayout.Bottom; functionView.iconBtn.UnSelectedImagePath = "ZigeeLogic/function.png"; functionView.funnameBtn.TextID = MyInternationalizationString.device; middle.AddChidren(functionView.FunFrameView()); - functionView.clickviewBtn.MouseUpEventHandler += (sender, e) => - { - var roomAndDeviceView = new RoomAndDeviceView(); - UserView.HomePage.Instance.AddChidren(roomAndDeviceView); - UserView.HomePage.Instance.PageIndex += 1; - roomAndDeviceView.IfType = LogicView.IfString.Condition_Logic; - roomAndDeviceView.Show(Language.StringByID(MyInternationalizationString.devicestate)); - }; + ///瀹夐槻 FunView securityView = new FunView(); securityView.funFrameLayout.Y = functionView.funFrameLayout.Bottom; securityView.iconBtn.UnSelectedImagePath = "ZigeeLogic/security.png"; securityView.funnameBtn.TextID = MyInternationalizationString.security; middle.AddChidren(securityView.FunFrameView()); - securityView.clickviewBtn.MouseUpEventHandler += (sender, e) => - { - //CurtainPanel.ButtonSet buttonSet = new CurtainPanel.ButtonSet(); - //UserView.HomePage.Instance.AddChidren(buttonSet); - //UserView.HomePage.Instance.PageIndex += 1; - //buttonSet.Show(); - //return; - var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; - this.AddChidren(flMain); - SecurityView(flMain, false); - }; + ///鍦扮悊鍥存爮 FunView positionView = new FunView(); positionView.funFrameLayout.Y = securityView.funFrameLayout.Bottom; @@ -80,15 +61,33 @@ positionView.funnameBtn.TextID = MyInternationalizationString.location; positionView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor; middle.AddChidren(positionView.FunFrameView()); + #endregion + + timeView.clickviewBtn.MouseUpEventHandler += (sender, e) => + { + TimeView(); + }; + functionView.clickviewBtn.MouseUpEventHandler += (sender, e) => + { + var roomAndDeviceView = new RoomAndDeviceView(); + UserView.HomePage.Instance.AddChidren(roomAndDeviceView); + UserView.HomePage.Instance.PageIndex += 1; + roomAndDeviceView.IfType = LogicView.IfString.Condition_Logic; + roomAndDeviceView.Show(Language.StringByID(MyInternationalizationString.devicestate)); + + }; + securityView.clickviewBtn.MouseUpEventHandler += (sender, e) => + { + var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; + this.AddChidren(flMain); + SecurityView(flMain, false); + }; positionView.clickviewBtn.MouseUpEventHandler += (sender, e) => { var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; this.AddChidren(flMain); LocationView(flMain, false); }; - - #endregion - } /// <summary> @@ -479,13 +478,15 @@ accounts.Add("Latitude", latitudW.ToString()); accounts.Add("Longitude", longitudeH.ToString()); accounts.Add("Radius", mRadius.ToString()); + LogicIfon.Addaccounts(accounts); LogicIfon.AddLocationconditions(LocationConditionsInfo); + var logicCommunalPage = new LogicCommunalPage(); UserView.HomePage.Instance.AddChidren(logicCommunalPage); UserView.HomePage.Instance.PageIndex += 1; logicCommunalPage.Show(() => { }); - }, strname, true, latitude, longitude, r); + }, strname, Language.StringByID(R.MyInternationalizationString.uSave), true, latitude, longitude, r); }; } @@ -494,6 +495,7 @@ /// </summary> void TimeView() { + UserView.HomePage.Instance.ScrollEnabled = false; Dictionary<string, string> SecurityConditionsInfo = new Dictionary<string, string>(); #region ------鐣岄潰甯冨眬閮ㄥ垎 @@ -575,6 +577,7 @@ }; } + } } -- Gitblit v1.8.0