From dce6c3481a37216292724013ff9d2b75ceb82f86 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 10 六月 2020 15:47:28 +0800 Subject: [PATCH] 添加小度的代码 --- ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayProductInfoForm.cs index d19b1ff..b509b41 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(); -- Gitblit v1.8.0