| | |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | if (function.spk == SPK.HvacCac) |
| | | { |
| | | #region 毛细空调 |
| | | var energyView1 = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(55), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(energyView1); |
| | | |
| | | var btnEnergyText1 = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(160), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = StringId.DewPointTemp, |
| | | }; |
| | | energyView1.AddChidren(btnEnergyText1); |
| | | |
| | | |
| | | double realTimePower = 0; |
| | | double.TryParse(function.GetAttrState("dew_point_temp"), out realTimePower); |
| | | |
| | | var energyValue1 = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(355), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | Text = realTimePower + "°C", |
| | | }; |
| | | energyView1.AddChidren(energyValue1); |
| | | |
| | | energyView1.AddChidren( |
| | | new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(54), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(1) |
| | | }); |
| | | //----------------- |
| | | |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | LoadEventList(); |
| | | } |
| | | |