Beispiel #1
0
        public override StorageMedia Clone()
        {
            var item = new StoragePhoto(File);

            item._thumbnail = _thumbnail;
            item._preview   = _preview;

            return(item);
        }
Beispiel #2
0
        public override StorageMedia Clone()
        {
            var item = new StoragePhoto(File, _basic, Properties);

            item._thumbnail     = _thumbnail;
            item._preview       = _preview;
            item._cropRectangle = _cropRectangle;

            return(item);
        }
Beispiel #3
0
 public static async Task <StorageMedia> CreateAsync(StorageFile file, bool selected)
 {
     if (file.ContentType.Equals("video/mp4"))
     {
         return(await StorageVideo.CreateAsync(file, selected));
     }
     else
     {
         return(await StoragePhoto.CreateAsync(file, selected));
     }
 }