public static void PostDownload(IList <Feed> downloadedFeeds) { if (downloadedFeeds != null && downloadedFeeds.Count > 0) { var dbContext = new PersistentManager(); var downloadedFileName = string.Format("{0}-{1}.dat", AppConfig.TEMP_DOWNLOAD_FILE_PATTERN, DateTime.Now.ToString("yyyy-MM-dd-hh-mm-ss-tt")); if (dbContext.UpdateSerializedCopy(downloadedFeeds, downloadedFileName, false)) { if (AppConfig.ShowBackgroundUpdateResult) { ShellToast toast = new ShellToast(); toast.Title = "duyệt báo"; toast.Content = string.Format("tải {0} tin từ {1} mục", downloadedFeeds.Sum(f => f.Items.Count).ToString(), downloadedFeeds.Count); toast.Show(); } FlipTileData flipTileData = new FlipTileData() { Count = downloadedFeeds.Sum(f => f.Items.Count), BackContent = string.Format("tải {0} tin", downloadedFeeds.Sum(f => f.Items.Count)).ToString(), BackTitle = string.Format("cập nhật {0} mục", downloadedFeeds.Count), BackBackgroundImage = new Uri("Resources/tile-med-back.png", UriKind.Relative) }; ShellTile appTile = ShellTile.ActiveTiles.First(); if (appTile != null) { appTile.Update(flipTileData); } } } }