added "last checked" label to form

This commit is contained in:
Wesley Hofman
2025-09-02 10:04:18 +02:00
parent 07753f3984
commit 3046304421
3 changed files with 19 additions and 3 deletions

View File

@@ -1885,6 +1885,10 @@ namespace HalCheck
List<int> sensorIds = rthSensors.Select(s => s.Id).ToList();
List<(double temperature, double humidity)> sensorData = GetTemperaturesAndHumidity(sensorIds);
lblLastCheckTimeStamp.BringToFront();
lblLastCheckTimeStamp.Visible = true;
lblLastCheckTimeStamp.Text = "Last checked: " + DateTime.Now.ToString("HH:mm:ss");
for (int i = 0; i < sensorData.Count; i++)
{
rthSensors[i].Temperature = sensorData[i].temperature;