public async Task LoadSubStorageDependentResources() { var folderNameParts = !String.IsNullOrEmpty(AppProfileManager.Instance.SubStorageName) ? new[] { FileStorageManager.IncomingFolderName, $"{FileStorageManager.CommonIncomingFolderName}_clients", AppProfileManager.Instance.SubStorageName, } : new[] { FileStorageManager.IncomingFolderName, FileStorageManager.CommonIncomingFolderName, }; #region Remote DictionariesFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "ad_sales_data" })); MasterWizardsFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "Slides" })); await MasterWizardsFolder.Download(); ThemesFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "SellerPointThemes" })); await ThemesFolder.Download(); SlideMastersFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "SlidesTab" })); if (await SlideMastersFolder.Exists(true)) { await SlideMastersFolder.Download(); } ScheduleSlideTemplatesFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "ScheduleBuilders" })); CalendarSlideTemplatesFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "Calendar" })); ArtworkFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "Artwork" })); RateCardFolder = new ArchiveDirectory(folderNameParts.Merge(new[] { "RateCard" })); DefaultSlideSettingsFile = new StorageFile(folderNameParts.Merge(new[] { "AppSettings", "DefaultSlideSettings.xml" })); await DefaultSlideSettingsFile.Download(); SlideSizeSettingsFile = new StorageFile(folderNameParts.Merge(new[] { "AppSettings", "SlideSizeSettings.xml" })); await SlideSizeSettingsFile.Download(); HelpFile = new StorageFile(folderNameParts.Merge(new[] { "HelpUrls", HelpManager.GetFileName() })); await HelpFile.Download(); HelpBrowserFile = new StorageFile(folderNameParts.Merge(new[] { "HelpUrls", "!Help_Browser.xml" })); await HelpBrowserFile.Download(); OnlineListsFile = new StorageFile( DictionariesFolder.RelativePathParts.Merge("Online Strategy.xml")); DataSimpleSummaryFile = new StorageFile( DictionariesFolder.RelativePathParts.Merge("Closing Summary.xml")); #endregion }