private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri) { try { if (bitmap != null && (checkUri == null || image.UriSource == checkUri)) { image.Source = bitmap; } } catch { } }
private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri) { try { if (bitmap != null && (checkUri == null || image.UriSource == checkUri)) { if (!bitmap.IsFrozen) throw new ArgumentException("Image is not frozen."); image.Source = bitmap; } } catch { } }
private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri) { try { if (bitmap != null && (checkUri == null || image.UriSource == checkUri)) { if (!bitmap.IsFrozen) { throw new ArgumentException("Image is not frozen."); } image.Source = bitmap; } } catch { } }
private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri) { try { if (bitmap != null) { if (checkUri == null || image.UriSource == checkUri) { if (!bitmap.IsFrozen) { System.Diagnostics.Debug.WriteLine("unfreezed. source type is:" + bitmap.GetType()); } image.Source = bitmap; } } } catch { } }