From e90209beae6a4e822cecb18e6889f8bda23f630e Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 14 十二月 2020 11:16:06 +0800
Subject: [PATCH] 合并了晾衣架(非新云端)

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
index f1d8c4b..ead44e9 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
@@ -72,7 +72,7 @@
             //璁剧疆鏍囬淇℃伅
             base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddDevice));
 
-            this.gatewayId = HdlGatewayResourse.NowSelectGatewayId;
+            this.gatewayId = GatewayResourse.NowSelectGatewayId;
             HdlGatewayLogic.Current.GetRealGateway(ref this.realGateway, this.gatewayId);
 
             //鍒濆鍖栦腑閮ㄦ帶浠�
@@ -163,7 +163,7 @@
                 return;
             }
             //鏍规嵁璁惧Type鍒涘缓瀵瑰簲鐨勮澶囧璞�
-            var device = HdlDeviceCommonLogic.Current.NewDeviceObjectByDeviceId((DeviceType)jobject.Value<int>("Device_ID"), jobject.Value<int>("Epoint"));
+            var device = Common.LocalDevice.Current.NewDeviceObjectByDeviceId((DeviceType)jobject.Value<int>("Device_ID"), jobject.Value<int>("Epoint"));
             if (device == null)
             {
                 return;
@@ -171,14 +171,14 @@
             device.DeviceInfo = info;
 
             //缁欐柊璁惧璁剧疆涓婚敭灞炴��
-            HdlDeviceCommonLogic.Current.SetNewDeviceMainKeys(device, jobject);
+            Common.LocalDevice.Current.SetNewDeviceMainKeys(device, jobject);
             device.CurrentGateWayId = this.realGateway.GwId;
             //灏咲eviceInfo鐨勫睘鎬ц缃埌涓诲睘鎬т腑
-            HdlDeviceCommonLogic.Current.SetDeviceInfoToMain(device, device);
+            Common.LocalDevice.Current.SetDeviceInfoToMain(device, device);
 
             //娣诲姞璁惧鐨勭紦瀛�
             device.IsOnline = 1;
-            HdlDeviceCommonLogic.Current.AddDeviceToMemory(ref device);
+            Common.LocalDevice.Current.AddDeviceToMemory(ref device);
 
             //鍒锋柊瓒呮椂鏃堕棿
             this.waitDeviceTimeOut = 20;
@@ -236,10 +236,10 @@
                     device.ReSave();
 
                     //璁剧疆璁惧鍔熻兘绫诲瀷 (涓嶈兘鍦ㄦ帴鏀跺洖璺殑鍦版柟鍐欏叆,涓嶇劧缃戝叧鍙兘浼氳秴璐熻嵎)
-                    HdlDeviceCommonLogic.Current.RefreshDeviceFunctionType(device, device, true);
+                    Common.LocalDevice.Current.RefreshDeviceFunctionType(device, device, true);
                     System.Threading.Thread.Sleep(200);
                     //鑾峰彇璁惧鐨勫浐瀹氬睘鎬�
-                    if (HdlDeviceAttributeLogic.Current.ReadDeviceAllFixedAttribute(device) == true)
+                    if (HdlDeviceFixedAttributeLogic.Current.SetAllFixedAttributeToDevice(device) == true)
                     {
                         System.Threading.Thread.Sleep(200);
                     }
@@ -269,7 +269,7 @@
             if (this.targetFormId != string.Empty)
             {
                 //鍐嶅叧闂澶囧叆缃戞寚瀵肩晫闈�
-                HdlFormLogic.Current.CloseFormByFormName(this.targetFormId);
+                this.CloseFormByFormName(this.targetFormId);
             }
 
             //娣诲姞璁惧

--
Gitblit v1.8.0