From 3272ca5b51e19f7f8a827b0f68400570a547fe60 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 28 四月 2020 15:02:44 +0800 Subject: [PATCH] 2020-04-28-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs index c3a0bc0..dbf5e20 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs @@ -43,7 +43,7 @@ /// <summary> /// 鏄剧ずIP鎺т欢 /// </summary> - private NormalViewControl btnIp = null; + public NormalViewControl btnIp = null; /// <summary> /// 鍦ㄧ嚎鐘舵�� @@ -121,7 +121,11 @@ frameTable.AddChidren(btnName, ChidrenBindMode.BindEventOnly); //鎴块棿 - string strIp = HdlGatewayLogic.Current.GetGatewayBaseInfoAttribute(tempWay, "IpAddress").ToString(); + string strIp = string.Empty; + if (tempWay != null) + { + strIp = tempWay.getGatewayBaseInfo.IpAddress; + } this.btnIp = frameTable.AddLeftCaption(strIp, 600, 50, true); //杩欎釜鍧愭爣鏈夌偣鐗规畩 btnIp.Y = Application.GetRealHeight(72) + this.chidrenYaxis; -- Gitblit v1.8.0