From 133ca903ae9c4df6ff037f5223d5abcd0df926f4 Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期五, 20 三月 2020 17:55:32 +0800 Subject: [PATCH] 2020-03-20-1 --- ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs | 49 +++++++++++++++++++++++++------------------------ 1 files changed, 25 insertions(+), 24 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs index 73cfb83..3d0f6c6 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs @@ -33,21 +33,21 @@ }; this.AddChidren(middle); ///鏃堕棿 - FunView timeview = new FunView(); - timeview.iconBtn.UnSelectedImagePath = "ZigeeLogic/time.png"; - timeview.funnameBtn.TextID = MyInternationalizationString.timecondition; - middle.AddChidren(timeview.FunFrameView()); - timeview.clickviewBtn.MouseUpEventHandler += (sender, e) => + FunView timeView = new FunView(); + 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) => + 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); @@ -56,12 +56,12 @@ 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) => + 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); @@ -73,13 +73,14 @@ SecurityView(flMain, false); }; ///鍦扮悊鍥存爮 - FunView positionview = new FunView(); - positionview.funFrameLayout.Y = securityview.funFrameLayout.Bottom; - positionview.iconBtn.UnSelectedImagePath = "ZigeeLogic/position.png"; - positionview.funnameBtn.TextID = MyInternationalizationString.location; - positionview.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor; - middle.AddChidren(positionview.FunFrameView()); - positionview.clickviewBtn.MouseUpEventHandler += (sender, e) => + FunView positionView = new FunView(); + positionView.funFrameLayout.Y = securityView.funFrameLayout.Bottom; + positionView.funFrameLayout.Height = Application.GetRealHeight(160+20);//鏈�鍚庝竴琛屽鍔�20楂樺害; + positionView.iconBtn.UnSelectedImagePath = "ZigeeLogic/position.png"; + positionView.funnameBtn.TextID = MyInternationalizationString.location; + positionView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor; + middle.AddChidren(positionView.FunFrameView()); + positionView.clickviewBtn.MouseUpEventHandler += (sender, e) => { var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; this.AddChidren(flMain); -- Gitblit v1.8.0