From 691b0f2434acc1685b43f873657c9230726ffe6f Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期二, 19 四月 2022 13:38:20 +0800 Subject: [PATCH] 1.增加人脸、可视对讲入口 2.增加清除推送角标数值接口 3.修改初始化全视通、登出全视通 --- 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