From cc0d80c7d86c6d0167269b3408c4b30c24ce84e9 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 23 三月 2020 16:55:37 +0800
Subject: [PATCH] ???????

---
 ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs b/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs
index f9dddbd..12d007b 100755
--- a/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs
+++ b/ZigbeeApp/Shared/Common/SceneTargetDeviceUI.cs
@@ -1,6 +1,7 @@
 锘縰sing System;
 using System.Collections.Generic;
 using System.Globalization;
+using ZigBee.Device;
 using static ZigBee.Device.Scene;
 
 namespace Shared.Common
@@ -24,7 +25,7 @@
         /// 閫夋嫨鐨勮澶�
         /// Type=0 瀛樺湪
         /// </summary>
-        public DeviceUI DeviceUI = new DeviceUI();
+        public CommonDevice DeviceUI = new CommonDevice();
 
         /// <summary>
         /// Type=0銆�1銆�2 瀛樺湪
@@ -64,7 +65,7 @@
         /// <returns></returns>
         public string GetDeviceStatu()
         {
-            if (DeviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.OnOffOutput)
+            if (DeviceUI.Type == ZigBee.Device.DeviceType.OnOffOutput)
             {
                 if (TaskList.Count == 0)
                 {
@@ -76,7 +77,7 @@
                 }
                 return Language.StringByID(R.MyInternationalizationString.Shut);
             }
-            else if (DeviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.AirSwitch)
+            else if (DeviceUI.Type == ZigBee.Device.DeviceType.AirSwitch)
             {
                 if (TaskList.Count == 0)
                 {
@@ -88,7 +89,7 @@
                 }
                 return Language.StringByID(R.MyInternationalizationString.Shut);
             }
-            else if (DeviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.DimmableLight)
+            else if (DeviceUI.Type == ZigBee.Device.DeviceType.DimmableLight)
             {
                 if (TaskList.Count == 0)
                 {
@@ -100,7 +101,7 @@
                 }
                 return $"{(int)(TaskList[0].Data1 * 1.0 / 254 * 100)}%";
             }
-            else if (DeviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.WindowCoveringDevice)
+            else if (DeviceUI.Type == ZigBee.Device.DeviceType.WindowCoveringDevice)
             {
                 if (TaskList.Count == 0)
                 {
@@ -112,7 +113,7 @@
                 }
                 return $"{TaskList[0].Data2}%";
             }
-            else if (DeviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.Thermostat)
+            else if (DeviceUI.Type == ZigBee.Device.DeviceType.Thermostat)
             {
                 //娓╁害锛屾ā寮忥紝椋庨��
                 string tempareture = string.Empty;

--
Gitblit v1.8.0