From 5777c367f53c758546211d5f7f40a27f0b11c660 Mon Sep 17 00:00:00 2001 From: lss <lsc@hdlchina.com.cn> Date: 星期二, 26 四月 2022 18:02:03 +0800 Subject: [PATCH] 2022-4-26 --- ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs index 2fbc3d1..0d335b8 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/ControlForm/Base/DeviceDetailCardCommonForm.cs @@ -132,6 +132,17 @@ frameWhiteBack.Gravity = Gravity.CenterHorizontal; bodyFrameLayout.AddChidren(frameWhiteBack); + if (this.device.Type == DeviceType.TemperatureSensor) + { + //鑾峰彇璁惧绫诲瀷 + var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(new List<CommonDevice>() { device }); + //绌烘皵璐ㄩ噺浼犳劅鍣� ,鍗$墖姣旇緝澶� + if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.AirQualitySensor) + { + frameWhiteBack.Y = Application.GetRealHeight(98); + } + } + //璁惧鍚嶇О this.btnDeviceName = new NormalViewControl(100, 60, true); btnDeviceName.Y = Application.GetRealHeight(46); -- Gitblit v1.8.0