| | |
| | | } |
| | | public void Show() |
| | | { |
| | | #region 上面的布局代码 |
| | | #region 界面的布局代码 |
| | | TopView view = new TopView(); |
| | | this.AddChidren(view.TopRowView()); |
| | | view.toptitleNameBtn.TextID = MyInternationalizationString.selection; |
| | | view.clickBtn.MouseDownEventHandler += (sender, e) => { RemoveFromParent(); }; |
| | | #endregion |
| | | #region 最下面的布局代码 |
| | | |
| | | var middle = new FrameLayout |
| | | { |
| | | Y = view.topRowLayout.Bottom, |
| | |
| | | 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; |
| | |
| | | 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> |
| | |
| | | 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); |
| | | }; |
| | | } |
| | | |