Esempio n. 1
0
        internal async void LoadPath(string p)
        {
            //get the metadata
            var metadata = await App.DropNetClient.GetMetaData(p);

            //now load the viewmodel with it
            MetaData = metadata;
            Contents = metadata.Contents.ToObservableCollection();
            SelectedMeta = null;
        }
Esempio n. 2
0
 /// <summary>
 /// Gets the thumbnail of an image given its MetaData
 /// </summary>
 /// <param name="file"></param>
 /// <param name="size"></param>
 /// <returns></returns>
 public async Task<byte[]> GetThumbnail(MetaData file, ThumbnailSize size)
 {
     return await GetThumbnail(file.Path, size);
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the thumbnail of an image given its MetaData
 /// </summary>
 /// <param name="file"></param>
 /// <returns></returns>
 public async Task<byte[]> GetThumbnail(MetaData file)
 {
     return await GetThumbnail(file.Path, ThumbnailSize.Small);
 }