");
+ foreach (var banner in banners)
+ {
+ contentBuilder.Append(@"
").Append(banner.Content).Append("
");
+ }
+ contentBuilder.Append(@"
");
+ StorageFolder folder = await ApplicationData.Current.TemporaryFolder.CreateFolderAsync("banner", CreationCollisionOption.OpenIfExists);
+ StorageFile file = await folder.CreateFileAsync(BannerFile, CreationCollisionOption.ReplaceExisting);
+ await FileIO.WriteTextAsync(file, contentBuilder.ToString());
+ return true;
+ }
+ }
+ catch (Exception ex) when (!(ex is AppOutdatedException))
+ {
+ }
+ return false;
+ }
+ }
+
public async Task Reload()
{
await GetFilesByFilterAsync(Pagination.Page, Pagination.PageSize, Pagination.SearchText);