From 0c0536e9b5db204fd3bd3c2443ef500b66bf7423 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 24 十一月 2020 17:48:40 +0800
Subject: [PATCH] 2020-11-24-1
---
HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePageBLL.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePageBLL.cs
index 86d16e0..9be73c0 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePageBLL.cs
@@ -45,12 +45,14 @@
else if (tag == "SensorLevel")
{
(btn as Button).TextID = sensor.levelTextList[sensor.curLevel - 1];
+ (btn as Button).TextColor = sensor.levelColorList[sensor.curLevel - 1];
}
}
}
else if (btn.GetType() == typeof(ArcSeekBar))
{
(btn as ArcSeekBar).ProgressBarColor = sensor.levelColorList[sensor.curLevel - 1];
+
(btn as ArcSeekBar).Progress = (96 / sensor.levelColorList.Count) * sensor.curLevel;
}
}
--
Gitblit v1.8.0