From d6fb0646531172f23648441c224cdcccd721b894 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期一, 14 十二月 2020 09:59:01 +0800
Subject: [PATCH] 请合并代码,完成晾衣架最终功能。

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleEnvironmentButtonSettionForm.cs |   53 +++++++----------------------------------------------
 1 files changed, 7 insertions(+), 46 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleEnvironmentButtonSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleEnvironmentButtonSettionForm.cs
index 6b6ac40..d175f2e 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleEnvironmentButtonSettionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleEnvironmentButtonSettionForm.cs
@@ -8,7 +8,7 @@
 namespace Shared.Phone.UserCenter.DevicePanel
 {
     /// <summary>
-    /// 鏂规偊鏂伴闈㈡澘鐨勬寜閿厤缃晫闈�
+    /// 闈㈡澘鐨勬寜閿厤缃晫闈€�愯绫绘殏鏃惰垗寮冦��
     /// </summary>
     public class PanelSimpleEnvironmentButtonSettionForm : EditorCommonForm
     {
@@ -164,7 +164,7 @@
 
                         Application.RunOnMainThread(() =>
                         {
-                            new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
+                            new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime) + "(" + "5007" + ")", Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
                         });
                     }
                 }
@@ -221,15 +221,7 @@
                             {
                                 continue;
                             }
-                            if (string.IsNullOrEmpty(bDev.ESName))
-                            {
-                                bindFreshAirName = Common.LocalDevice.Current.GetDeviceEpointName(device);
-                            }
-                            else
-                            {
-                                bindFreshAirName = bDev.ESName;
-                            }
-
+                            bindFreshAirName = Common.LocalDevice.Current.GetDeviceEpointName(device);
                             bindFreshAirDev = device;
                         }
                         else if (device.Type == DeviceType.TemperatureSensor)
@@ -237,54 +229,23 @@
                             var bD = device as TemperatureSensor;
                             if (bD.SensorDiv == 1)
                             {
-                                if (string.IsNullOrEmpty(bDev.ESName))
-                                {
-                                    bindTemperatureName = Common.LocalDevice.Current.GetDeviceEpointName(device);
-                                }
-                                else
-                                {
-                                    bindTemperatureName = bDev.ESName;
-                                }
+                                bindTemperatureName = Common.LocalDevice.Current.GetDeviceEpointName(device);
                                 bindTemperatureDev = device;
                             }
                             if (bD.SensorDiv == 2)
                             {
-                                if (string.IsNullOrEmpty(bDev.ESName))
-                                {
-                                    bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
-                                }
-                                else
-                                {
-                                    bindHumidityName = bDev.ESName;
-                                }
-
+                                bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
                                 bindHumidityDev = device;
                             }
                         }
                         else if (device.Type == DeviceType.FreshAirHumiditySensor)
                         {
-                            if (string.IsNullOrEmpty(bDev.ESName))
-                            {
-                                bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
-                            }
-                            else
-                            {
-                                bindHumidityName = bDev.ESName;
-                            }
-
+                            bindHumidityName = Common.LocalDevice.Current.GetDeviceEpointName(device);
                             bindHumidityDev = device;
                         }
                         else if (device.Type == DeviceType.Thermostat)
                         {
-                            if (string.IsNullOrEmpty(bDev.ESName))
-                            {
-                                bindAcName = Common.LocalDevice.Current.GetDeviceEpointName(device);
-                            }
-                            else
-                            {
-                                bindAcName = bDev.ESName;
-                            }
-
+                            bindAcName = Common.LocalDevice.Current.GetDeviceEpointName(device);
                             bindAcDev = device;
                         }
                         else if (device.Type == DeviceType.PMSensor)

--
Gitblit v1.8.0