QuickImage – Diff between revs 7 and 11

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 7 Rev 11
Line 23... Line 23...
23 return; 23 return;
24 } 24 }
Line 25... Line 25...
25   25  
Line -... Line 26...
-   26 _images = value;
26 _images = value; 27  
27   28 supportedImages.Clear();
28 if (value is { Image: { } } && value.Image.Count != 0) 29 if (value is { Image: { } } && value.Image.Count != 0)
29 { 30 {
30 supportedImages.UnionWith(value.Image); 31 supportedImages.UnionWith(value.Image);
Line 43... Line 44...
43 { 44 {
44 return; 45 return;
45 } 46 }
Line 46... Line 47...
46   47  
-   48 _videos = value;
-   49  
47 _videos = value; 50 supportedVideos.Clear();
48 if(value is { Video: { }} && value.Video.Count != 0) 51 if(value is { Video: { }} && value.Video.Count != 0)
49 { 52 {
50 supportedVideos.UnionWith(value.Video); 53 supportedVideos.UnionWith(value.Video);
51 } 54 }
Line 56... Line 59...
56 public SupportedFormats() 59 public SupportedFormats()
57 { 60 {
58 } 61 }
Line 59... Line 62...
59   62  
60 public event PropertyChangedEventHandler PropertyChanged; 63 public event PropertyChangedEventHandler PropertyChanged;
61 private readonly HashSet<string> supportedImages = new HashSet<string>(StringComparer.OrdinalIgnoreCase); 64 private readonly HashSet<string> supportedImages = new HashSet<string>(new[] { "image/jpeg", "image/png", "image/gif", "image/bmp", "image/webp", "image/tga" }, StringComparer.OrdinalIgnoreCase);
Line 62... Line 65...
62 private readonly HashSet<string> supportedVideos = new HashSet<string>(StringComparer.OrdinalIgnoreCase); 65 private readonly HashSet<string> supportedVideos = new HashSet<string>(new[] { "video/mp4", "video/x-m4v", "video/webm" }, StringComparer.OrdinalIgnoreCase);
63   66  
64 public bool IsSupported(string mime) 67 public bool IsSupported(string mime)
65 { 68 {