From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 21 七月 2020 09:46:53 +0800
Subject: [PATCH] 请合并最新多功能面板代码

---
 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs
index d19b1ff..ef5a516 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs
@@ -57,22 +57,22 @@
             framePic.Y = Application.GetRealHeight(58);
             listBackControl.frameTable.AddChidren(framePic);
 
-            var imageFile = "Gateway/RealGateway" + this.zbGateway.getGwInfo.LinuxImageType + ".png";
-            string fullName = IO.FileUtils.GetImageFilePath(imageFile);
-            if (fullName == string.Empty)
+            var linuxImageType = this.zbGateway.LinuxImageType.ToString();
+            var imageFile = "Gateway/RealGateway" + linuxImageType + ".png";
+            imageFile = IO.FileUtils.GetImageFilePath(imageFile);
+            if (imageFile == string.Empty)
             {
                 //濡傛灉娌℃湁鎸囧畾鐨勭綉鍏崇殑鐪熷疄鍥剧墖鐨勮瘽,鍒欑敤鍏遍�氬浘鐗�
-                imageFile = "Gateway/RealGateway.png";
-
+                imageFile = IO.FileUtils.GetImageFilePath("Gateway/RealGateway.png");
             }
 #if Android
             //璁惧鍥剧墖
-            var bim = Android.Graphics.BitmapFactory.DecodeFile(fullName);
+            var bim = Android.Graphics.BitmapFactory.DecodeFile(imageFile);
             var btnpictrue = new PicViewControl(bim.Width, bim.Height);
 #endif
 #if iOS
             //璁惧鍥剧墖
-            var bim = UIKit.UIImage.FromFile(fullName);
+            var bim = UIKit.UIImage.FromFile(imageFile);
             var btnpictrue = new PicViewControl((int)bim.Size.Width, (int)bim.Size.Height);
 #endif
             bim.Dispose();
@@ -140,7 +140,7 @@
             rowBeloneArea.SelectRoomEvent += (roomKeys) =>
             {
                 //鍙樻洿缃戝叧鎴块棿
-                HdlGatewayLogic.Current.ChangedGatewayRoom(this.zbGateway, roomKeys);
+                HdlGatewayLogic.Current.ChangedGatewayRoom(this.zbGateway.GwId, roomKeys);
             };
 
             //瀹屾垚鍒濆鍖栨甯�
@@ -220,12 +220,12 @@
         /// </summary>
         /// <param name="gatewayName">缃戝叧鍚嶇О</param>
         /// <param name="closeForm">鍏抽棴鐣岄潰</param>
-        private async void SetGatewayName(string gatewayName, bool closeForm)
+        private void SetGatewayName(string gatewayName, bool closeForm)
         {
             //鎵撳紑杩涘害鏉�
             this.ShowProgressBar();
             //淇敼鏈湴缃戝叧鍚�
-            var result = await HdlGatewayLogic.Current.ReName(zbGateway, gatewayName);
+            var result = HdlGatewayLogic.Current.ReName(zbGateway, gatewayName);
             //鍏抽棴杩涘害鏉�
             this.CloseProgressBar();
 

--
Gitblit v1.8.0