| | |
| | | using System; |
| | | using Shared; |
| | | using HDL_ON; |
| | | using HDL_ON.UI.CSS; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.UI; |
| | | using System.Threading; |
| | | using HDL_ON.Entity; |
| | | |
| | | namespace HDL_ON |
| | | { |
| | |
| | | { |
| | | imageView.ImageBytes = null; |
| | | imageView.ImagePath = imageKey; |
| | | Utlis.WriteLine("imageKey 加载本地图片成功"); |
| | | //Utlis.WriteLine("imageKey 加载本地图片成功"); |
| | | } |
| | | } |
| | | else |
| | |
| | | if (imageView != null) |
| | | { |
| | | imageView.ImageBytes = FileUtils.ReadFile(imageKey); |
| | | Utlis.WriteLine("imageKey 加载自定义缓存图片成功"); |
| | | //Utlis.WriteLine("imageKey 加载自定义缓存图片成功"); |
| | | } |
| | | } |
| | | else |
| | |
| | | if (imageView != null) |
| | | { |
| | | imageView.ImageBytes = imageBytes; |
| | | Utlis.WriteLine("imageKey 加载云端下载图片成功"); |
| | | //Utlis.WriteLine("imageKey 加载云端下载图片成功"); |
| | | } |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | //2.4 下载是否,是否使用默认图片 |
| | | Utlis.WriteLine("imageKey 加载云端图片失败"); |
| | | //Utlis.WriteLine("imageKey 加载云端图片失败"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | { |
| | | //imageView.ImageBytes = null; |
| | | frameLayout.BackgroundImagePath = imageKey; |
| | | Utlis.WriteLine("imageKey 加载本地图片成功"); |
| | | //Utlis.WriteLine("imageKey 加载本地图片成功"); |
| | | } |
| | | } |
| | | else |
| | |
| | | if (frameLayout != null) |
| | | { |
| | | frameLayout.BackgroundImagePath = imageKey; |
| | | Utlis.WriteLine("imageKey 加载自定义缓存图片成功"); |
| | | //Utlis.WriteLine("imageKey 加载自定义缓存图片成功"); |
| | | } |
| | | } |
| | | else |
| | |
| | | if (frameLayout != null) |
| | | { |
| | | frameLayout.BackgroundImagePath = imageKey; |
| | | Utlis.WriteLine("imageKey 加载云端下载图片成功"); |
| | | //Utlis.WriteLine("imageKey 加载云端下载图片成功"); |
| | | } |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | //2.4 下载是否,是否使用默认图片 |
| | | Utlis.WriteLine("imageKey 加载云端图片失败"); |
| | | //Utlis.WriteLine("imageKey 加载云端图片失败"); |
| | | } |
| | | }); |
| | | } |