public StorageEntry(StorageFile file, StorageEntryUsage usage) { this.EntryType = StorageEntryType.File; this.ContentType = SEContentAgency.AnyalizeStorageEntryContent(file); this._storageItem = file; this.LoadThumbnail(usage); }
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); } }