private void UpdateLatestDaysImage() { var images = IoliuBingCrawler.LoadLatestDaysImages(); if (images.Count > 0) { HistoryImageProvider.AddBatch(images); } }
private void UpdateLocalData() { var images = IoliuBingCrawler.LoadHistoryImages(); if (images.Count > 0) { HistoryImageProvider.AddBatch(images); MessageBox.Show("更新了 " + images.Count + "条历史数据"); } else { MessageBox.Show("你的本地数据已经很全啦,未找到新数据!"); } }
private void UpdateLocalData() { var images = IoliuBingCrawler.LoadHistoryImages(); if (images.Count > 0) { HistoryImageProvider.AddBatch(images); ShowNotification(Resource.UpdateCount.Replace("{Count}", images.Count.ToString())); } else { ShowNotification(Resource.UpdateOver); } }