| | |
| | | { |
| | | Tag = "Logic"; |
| | | } |
| | | |
| | | public void Show() |
| | | { |
| | | LogicView.TopView topView = new LogicView.TopView(); |
| | |
| | | { |
| | | viewLayout.AddChidren(timeView.FLayoutView()); |
| | | } |
| | | |
| | | //功能 |
| | | LogicView.SelectTypeView functionView = new LogicView.SelectTypeView(); |
| | | functionView.frameLayout.Y = timeView.frameLayout.Bottom; |
| | | functionView.btnText.TextID = StringId.funLogic; |
| | | functionView.btnIcon.UnSelectedImagePath = "LogicIcon/functionicon.png"; |
| | | viewLayout.AddChidren(functionView.FLayoutView()); |
| | | if (!MainView.IsGatewayType) |
| | | { |
| | | functionView.frameLayout.Y = Application.GetRealHeight(0); |
| | | } |
| | | |
| | | //场景 |
| | | LogicView.SelectTypeView sceneView = new LogicView.SelectTypeView(); |
| | | sceneView.frameLayout.Y = functionView.frameLayout.Bottom; |
| | | sceneView.frameLayout.Y = timeView.frameLayout.Bottom; |
| | | sceneView.btnText.TextID = StringId.Scenes; |
| | | sceneView.btnIcon.UnSelectedImagePath = "LogicIcon/scene.png"; |
| | | if (MainView.IsGatewayType) |
| | | { |
| | | viewLayout.AddChidren(sceneView.FLayoutView()); |
| | | |
| | | } |
| | | //室外变化 |
| | | LogicView.SelectTypeView shiwaiView = new LogicView.SelectTypeView(); |
| | | shiwaiView.frameLayout.Y = sceneView.frameLayout.Bottom; |
| | |
| | | likiadaodaView.frameLayout.Y = shiwaiView.frameLayout.Bottom; |
| | | likiadaodaView.btnText.TextID = StringId.likiadaoda; |
| | | likiadaodaView.btnIcon.UnSelectedImagePath = "LogicIcon/location.png"; |
| | | |
| | | int count = 0;//输入类型个数 |
| | | if (MainView.IsGatewayType) |
| | | { |
| | | count = 4; |
| | | viewLayout.AddChidren(likiadaodaView.FLayoutView()); |
| | | } |
| | | ////功能 |
| | | ///产品经理君焕要求,设备功能移到这里。<2022-3-7> |
| | | new FunTpye(LogicMethod.condition_if).FunTypeView(viewLayout, likiadaodaView.frameLayout.Bottom, count); |
| | | |
| | | #endregion |
| | | |
| | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | }; |
| | | //功能 |
| | | functionView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | FunTpye funTpye = new FunTpye(); |
| | | MainPage.BasePageView.AddChidren(funTpye); |
| | | funTpye.Show(LogicMethod.condition_if); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | //场景点击事件 |
| | | sceneView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | |
| | | weather.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | | //地理围栏 |
| | | likiadaodaView.btnClick.MouseUpEventHandler += (sen, e) => |
| | | { |
| | |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 添加场景 |
| | | /// </summary> |
| | |
| | | Logic.currlogic.input.Add(input); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |