| | |
| | | |
| | | public void InitView() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Data)).LoadTopView(); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Data)) { maginY = 10 }.LoadTopView(); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | FrameLayout tempView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(74), |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | |
| | | TextID = StringId.TemperatureStatistics |
| | | }; |
| | | tempView.AddChidren(btnTempName); |
| | | btnTempName.MouseUpEventHandler = (sender, e) => { |
| | | btnTempName.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var page = new CacWeekHistoryPage(device, "room_temp"); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.InitView(); |
| | |
| | | |
| | | FrameLayout humidityView = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64 + 50), |
| | | Y = Application.GetRealHeight(74 + 50), |
| | | Height = Application.GetRealHeight(50), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | |
| | | TextID = StringId.HumidityStatistics |
| | | }; |
| | | humidityView.AddChidren(btnHumidityName); |
| | | btnHumidityName.MouseUpEventHandler = (sender, e) => { |
| | | btnHumidityName.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var page = new CacWeekHistoryPage(device, "room_humidity"); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.InitView(); |