Example #1
0
 public StorageEntry(StorageFile file, StorageEntryUsage usage)
 {
     this.EntryType    = StorageEntryType.File;
     this.ContentType  = SEContentAgency.AnyalizeStorageEntryContent(file);
     this._storageItem = file;
     this.LoadThumbnail(usage);
 }
Example #2
0
 public StorageEntry(IStorageItem item, StorageEntryUsage usage)
 {
     if (item is StorageFile file)
     {
         this.EntryType    = StorageEntryType.File;
         this.ContentType  = SEContentAgency.AnyalizeStorageEntryContent(file);
         this._storageItem = item;
         this.LoadThumbnail(usage);
     }
     else
     {
         this.EntryType    = StorageEntryType.Folder;
         this.ContentType  = SEContent.Folder;
         this._storageItem = item;
         this.LoadThumbnail(usage);
     }
 }