| | |
| | | /// </summary> |
| | | Button pvLoad_TodayValuesButton; |
| | | /// <summary> |
| | | /// 今日用电量单位按钮 |
| | | /// </summary> |
| | | Button loadEle_TodayUintButton; |
| | | /// <summary> |
| | | /// 累计用电量数据按钮 |
| | | /// </summary> |
| | | Button pvLoad_TotalValuesButton; |
| | |
| | | loadEleView.AddChidren(loadEle_TodayTextButton); |
| | | |
| | | |
| | | var loadEle_TodayUintButton = new Button() |
| | | loadEle_TodayUintButton = new Button() |
| | | { |
| | | Y = Application.GetRealWidth(43), |
| | | Height = Application.GetRealWidth(17), |
| | |
| | | IsBold = true, |
| | | }; |
| | | #if __IOS__ |
| | | pvLoad_TodayValuesButton.Y = Application.GetRealWidth(34); |
| | | pvLoad_TodayValuesButton.X = Application.GetRealWidth(81 - 12) - loadEle_TodayUintButton.Width; |
| | | #else |
| | | pvLoad_TodayValuesButton.Y = Application.GetRealWidth(37); |
| | | pvLoad_TodayValuesButton.X = Application.GetRealWidth(81 - 16) - loadEle_TodayUintButton.Width; |
| | |
| | | private void upatePvGenerateTodayValues() |
| | | { |
| | | pvGenerate_TodayValuesButton.Text = pvGeneration_TodayValuesButton.Text = function.GetAttrState(InverterJinmao_AttrEnum.pv_electricity_today.ToString()); |
| | | |
| | | #if __IOS__ |
| | | pvGenerate_TodayValuesButton.TextAlignment = TextAlignment.TopLeft; |
| | | pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(8); |
| | | #else |
| | | pvGenerate_TodayValuesButton.TextAlignment = TextAlignment.BottomLeft; |
| | | pvGenerate_TodayValuesButton.Y = Application.GetRealWidth(37); |
| | | pvGenerate_TodayValuesButton.Width = pvGenerate_TodayValuesButton.GetTextWidth() + Application.GetRealWidth(4); |
| | | #endif |
| | | pvGenerate_todayUintButton.X = pvGenerate_TodayValuesButton.Right; |
| | | } |
| | | /// <summary> |
| | |
| | | private void upatePvLoadTodayValues() |
| | | { |
| | | pvLoad_TodayValuesButton.Text = powerUsage_TodayValuesButton.Text = function.GetAttrState(InverterJinmao_AttrEnum.load_electricity_today.ToString()); |
| | | |
| | | #if __IOS__ |
| | | pvLoad_TodayValuesButton.Y = Application.GetRealWidth(34); |
| | | pvLoad_TodayValuesButton.X = Application.GetRealWidth(81 - 12) - loadEle_TodayUintButton.Width; |
| | | #else |
| | | pvLoad_TodayValuesButton.Y = Application.GetRealWidth(37); |
| | | pvLoad_TodayValuesButton.X = Application.GetRealWidth(81 - 16) - loadEle_TodayUintButton.Width; |
| | | #endif |
| | | } |
| | | /// <summary> |
| | | /// 更新本月用电量 |