From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs index 8ab794a..74055ac 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs @@ -95,8 +95,7 @@ for (int i = 0; i < listway.Count; i++) { //娣诲姞琛� - var gwId = HdlGatewayLogic.Current.GetGatewayId(listway[i]); - this.AddRowLayout(gwId, i != listway.Count - 1); + this.AddRowLayout(listway[i].GwId, i != listway.Count - 1); } //璋冩暣鍒楄〃鎺т欢鐨勯珮搴� @@ -131,7 +130,7 @@ //鎻愮ず鏂扮増鏈� var btnNew = new InformationTipView(gatewayRow.btnIcon); btnNew.Visible = false; - gatewayRow.frameTable.AddChidren(btnNew, ChidrenBindMode.BindEventOnly); + gatewayRow.frameTable.AddChidren(btnNew, ChidrenBindMode.BindEvent); gatewayRow.AddTag("btnNew", btnNew); //鍗曞嚮浜嬩欢 gatewayRow.frameTable.ButtonClickEvent += (sender, e) => @@ -226,7 +225,7 @@ btnNow.Y = Application.GetMinReal(23) + gatewayRow.frameTable.chidrenYaxis; btnNow.UnSelectedImagePath = "Item/NowAcctionTip.png"; btnNow.X = gatewayRow.btnName.X + gatewayRow.btnName.GetRealWidthByText(); - gatewayRow.frameTable.AddChidren(btnNow, ChidrenBindMode.BindEventOnly); + gatewayRow.frameTable.AddChidren(btnNow, ChidrenBindMode.BindEvent); } } @@ -361,7 +360,7 @@ { return; } - string gwid = HdlGatewayLogic.Current.GetGatewayId(gateWay); + string gwid = gateWay.GwId; if (this.dicRowContr.ContainsKey(gwid) == true && this.dicRowContr[gwid] != null) { this.dicRowContr[gwid].IsOnline = online; @@ -399,7 +398,7 @@ if (result[0] != null || result[1] != null || result[2] != null) { //鏈夋柊鐗堟湰 - string gwid = HdlGatewayLogic.Current.GetGatewayId(way); + string gwid = way.GwId; Application.RunOnMainThread(() => { if (this.dicRowContr.ContainsKey(gwid) == true && this.dicRowContr[gwid] != null) -- Gitblit v1.8.0