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/DeviceListMainForm.cs | 38 +++++++++++++++++++++++++++++++------- 1 files changed, 31 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs index 7ab4139..37c8a6f 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs @@ -493,6 +493,16 @@ var form = new DeviceMacInfoEditorForm(); form.AddForm(device.DeviceAddr); } + else if (deviceEnumInfo.BeloneType == DeviceBeloneType.A鏅捐。鏋�) + { + var form = new DeviceMacInfoEditorForm(); + form.AddForm(device.DeviceAddr); + } + else if (deviceEnumInfo.BeloneType == DeviceBeloneType.A绌烘皵璐ㄩ噺) + { + var form = new DeviceMacInfoEditorForm(); + form.AddForm(device.DeviceAddr); + } else if (deviceEnumInfo.BeloneType == DeviceBeloneType.A绐楀笜) { var form = new DeviceMacInfoEditorForm(); @@ -1143,6 +1153,20 @@ /// </summary> public override int FormActionAgainEvent() { + if (GatewayResourse.AppOldSelectGatewayId != this.gatewayViewRow.zbGatewayId) + { + //杩欎釜缃戝叧琚暣鎺変簡,闇�瑕侀噸鏂板垵濮嬪寲鐣岄潰 + this.nowActionDeviceMac = null; + this.oldShowRightMuneRow = null; + //閲嶆柊閫夋嫨缃戝叧 + HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId(); + + //鍒濆鍖栫晫闈� + this.InitMiddleFrame(); + + return 1; + } + if (this.nowActionDeviceMac != null) { //鍒锋柊鎸囧畾璁惧琛岀殑淇℃伅 @@ -1224,9 +1248,9 @@ /// </summary> private NormalViewControl btnName = null; /// <summary> - /// 鍦ㄧ嚎鐘舵�� + /// 鍦ㄧ嚎鐘舵��(鍒濆鐘舵�佷负鍦ㄧ嚎) /// </summary> - public bool isOnline = false; + public bool isOnline = true; /// <summary> /// 鑷畾涔夌綉鍏虫帶浠� @@ -1271,11 +1295,11 @@ { btnName.Text = HdlGatewayLogic.Current.GetGatewayName(zbway); //鍦ㄧ嚎鐘舵�� - this.isOnline = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbway); - if (this.isOnline == false) - { - btnName.TextColor = UserCenterColor.Current.TextGrayColor1; - } + //this.isOnline = HdlGatewayLogic.Current.CheckGatewayOnlineByMemory(zbway); + //if (this.isOnline == false) + //{ + // btnName.TextColor = UserCenterColor.Current.TextGrayColor1; + //} } else { -- Gitblit v1.8.0