From 0d9f64668fd7350d6a21fd157e32009a96d98134 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 16 十二月 2020 13:09:08 +0800 Subject: [PATCH] 新云端代码Ver1.2 --- ZigbeeApp/Shared/Phone/Common/Controls/DeviceControls/DeviceObjectControl.cs | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs b/ZigbeeApp/Shared/Phone/Common/Controls/DeviceControls/DeviceObjectControl.cs similarity index 88% rename from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs rename to ZigbeeApp/Shared/Phone/Common/Controls/DeviceControls/DeviceObjectControl.cs index 58dffb7..57bc490 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs +++ b/ZigbeeApp/Shared/Phone/Common/Controls/DeviceControls/DeviceObjectControl.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace Shared.Phone.UserCenter +namespace Shared.Phone { /// <summary> /// 鍋氭垚涓�涓樉绀鸿澶囩被鍨�+璁惧MAC澶囨敞鐨凴owLayout @@ -76,18 +76,18 @@ /// </summary> public void InitControl() { - var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac); + var listDevice = HdlDeviceCommonLogic.Current.GetDevicesByMac(this.deviceMac); if (listDevice.Count == 0) { //閽堝鍗曠函鍙湁涓�涓�200绔偣鐨勮澶� - listDevice.Add(Common.LocalDevice.Current.GetOTADevice(this.deviceMac)); + listDevice.Add(HdlDeviceCommonLogic.Current.GetOTADevice(this.deviceMac)); } //鍥炬爣 btnIcon = frameTable.AddLeftIcon(81); - Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice); + HdlDeviceCommonLogic.Current.SetDeviceObjectIconToControl(btnIcon, listDevice); //璁惧 - string deviceName = Common.LocalDevice.Current.GetDeviceMacName(listDevice[0]); + string deviceName = HdlDeviceCommonLogic.Current.GetDeviceMacName(listDevice[0]); btnDeviceName = frameTable.AddTopView(deviceName, 800); frameTable.AddChidren(btnDeviceName, ChidrenBindMode.BindEvent); @@ -99,7 +99,7 @@ frameTable.AddBottomLine(); //璁剧疆鍦ㄧ嚎鐘舵�佺殑鐗规晥 - this.IsOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(listDevice[0]); + this.IsOnline = HdlDeviceCommonLogic.Current.CheckDeviceIsOnline(listDevice[0]); } #endregion @@ -134,16 +134,16 @@ } hadRefresh = true; - var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac); + var listDevice = HdlDeviceCommonLogic.Current.GetDevicesByMac(this.deviceMac); if (listDevice.Count == 0) { //閽堝鍗曠函鍙湁涓�涓�200绔偣鐨勮澶� - listDevice.Add(Common.LocalDevice.Current.GetOTADevice(this.deviceMac)); + listDevice.Add(HdlDeviceCommonLogic.Current.GetOTADevice(this.deviceMac)); } //鍥炬爣 - Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice); + HdlDeviceCommonLogic.Current.SetDeviceObjectIconToControl(btnIcon, listDevice); //璁惧 - btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceMacName(listDevice[0]); + btnDeviceName.Text = HdlDeviceCommonLogic.Current.GetDeviceMacName(listDevice[0]); //璁惧鎴块棿 btnDeviceRoom.Text = HdlRoomLogic.Current.GeteRealDeviceRoomName(listDevice[0]); } -- Gitblit v1.8.0