| | |
| | | LogicView.SelectTypeView timeView = new LogicView.SelectTypeView(); |
| | | timeView.btnText.TextID = StringId.time; |
| | | timeView.btnIcon.UnSelectedImagePath = "LogicIcon/time.png"; |
| | | viewLayout.AddChidren(timeView.FLayoutView()); |
| | | if (MainView.IsGatewayType) |
| | | { |
| | | viewLayout.AddChidren(timeView.FLayoutView()); |
| | | } |
| | | |
| | | //功能 |
| | | LogicView.SelectTypeView functionView = new LogicView.SelectTypeView(); |
| | |
| | | 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 shiwaiView = new LogicView.SelectTypeView(); |
| | | shiwaiView.frameLayout.Y = functionView.frameLayout.Bottom; |
| | | shiwaiView.btnText.TextID = StringId.shiwaibainhua; |
| | | shiwaiView.btnIcon.UnSelectedImagePath = "LogicIcon/changesinoutdoor.png"; |
| | | viewLayout.AddChidren(shiwaiView.FLayoutView()); |
| | | |
| | | if (MainView.IsGatewayType) |
| | | { |
| | | viewLayout.AddChidren(shiwaiView.FLayoutView()); |
| | | } |
| | | #endregion |
| | | |
| | | |