黄学彪
2020-06-10 dce6c3481a37216292724013ff9d2b75ceb82f86
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();