From 45c4cbb01b4e10d2b9488689a1a67ab4988d9f5d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 31 七月 2023 01:20:57 +0800
Subject: [PATCH] Update AirSwitchP3SubloopEnergyPage.cs

---
 HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3SubloopEnergyPage.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3SubloopEnergyPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3SubloopEnergyPage.cs
index b9cfbc3..d47db5a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3SubloopEnergyPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchP3SubloopEnergyPage.cs
@@ -496,9 +496,10 @@
                 TextSize = 49,
                 TextColor = 0xFF030D1C,
                 TextAlignment = TextAlignment.Center,
-                Text = device.GetAttrState(FunctionAttributeKey.TotalElectricity),
+                Text = device.GetAttrState(key),
             };
             totalElectricityView.AddChidren(btnTotalNumber);
+            
 
             btnShowHistroyData_Day.MouseUpEventHandler += (sender, e) => {
                 totalElectricityView.RemoveFromParent();
@@ -506,6 +507,7 @@
                 //viewa.Visible = true;
                 //viewb.Visible = true;
                 //viewc.Visible = true;
+                btnTip.TextID = StringId.AirSwitchP3HistroyTip1;
                 historyDataView.Height = Application.GetRealHeight(330);
             };
             btnShowHistroyData_Month.MouseUpEventHandler += (sender, e) => {
@@ -514,6 +516,7 @@
                 //viewa.Visible = true;
                 //viewb.Visible = true;
                 //viewc.Visible = true;
+                btnTip.TextID = StringId.AirSwitchP3HistroyTip2;
                 historyDataView.Height = Application.GetRealHeight(330);
             };
             btnShowHistroyData_Year.MouseUpEventHandler += (sender, e) => {
@@ -522,6 +525,7 @@
                 //viewa.Visible = true;
                 //viewb.Visible = true;
                 //viewc.Visible = true;
+                btnTip.TextID = StringId.AirSwitchP3HistroyTip3;
                 historyDataView.Height = Application.GetRealHeight(330);
             };
             btnShowHistroyData_Total.MouseUpEventHandler += (sender, e) => {

--
Gitblit v1.8.0