From 351bdda734832d821a9764b0cde8be5d83c4ec50 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 01 十二月 2022 09:56:25 +0800 Subject: [PATCH] 2022年12月01日09:56:23 --- ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs index e67d3a3..4fa5865 100755 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs @@ -137,8 +137,8 @@ TextAlignment = TextAlignment.CenterLeft }; if (this.temperDevice != null) - { - //杩欎釜璁惧瑕佸瓨鍦ㄦ湰鍦版墠琛� + { + //杩欎釜璁惧瑕佸瓨鍦ㄦ湰鍦版墠琛� decimal temperatrue = (decimal)temperDevice.GetType().InvokeMember("currentTemperature", System.Reflection.BindingFlags.GetField, null, temperDevice, null); temperatureText.Text = temperatrue == 0 ? "0.0鈩�" : temperatrue.ToString() + "鈩�"; } @@ -163,10 +163,10 @@ TextSize = 14, TextAlignment = TextAlignment.CenterLeft }; - + if (this.humidDevice != null) - { - //杩欎釜璁惧瑕佸瓨鍦ㄦ湰鍦版墠琛� + { + //杩欎釜璁惧瑕佸瓨鍦ㄦ湰鍦版墠琛� decimal humidity = (decimal)humidDevice.GetType().InvokeMember("currentHumidity", System.Reflection.BindingFlags.GetField, null, humidDevice, null); humidityText.Text = humidity == 0 ? "0.0%" : humidity.ToString() + "%"; } @@ -218,7 +218,7 @@ if (report.DeviceAddr == temperDevice.DeviceAddr && report.DeviceEpoint == temperDevice.DeviceEpoint) { HdlThreadLogic.Current.RunMain(() => - { + { decimal temperatrue = (decimal)temperDevice.GetType().InvokeMember("currentTemperature", System.Reflection.BindingFlags.GetField, null, temperDevice, null); if (temperatrue == 0) { @@ -237,7 +237,7 @@ if (report.DeviceAddr == humidDevice.DeviceAddr && report.DeviceEpoint == humidDevice.DeviceEpoint) { HdlThreadLogic.Current.RunMain(() => - { + { decimal humidity = (decimal)humidDevice.GetType().InvokeMember("currentHumidity", System.Reflection.BindingFlags.GetField, null, humidDevice, null); if (humidity == 0) { -- Gitblit v1.8.0