Пример #1
0
        private void UpdateLatestDaysImage()
        {
            var images = IoliuBingCrawler.LoadLatestDaysImages();

            if (images.Count > 0)
            {
                HistoryImageProvider.AddBatch(images);
            }
        }
Пример #2
0
        private void UpdateLocalData()
        {
            var images = IoliuBingCrawler.LoadHistoryImages();

            if (images.Count > 0)
            {
                HistoryImageProvider.AddBatch(images);
                MessageBox.Show("更新了 " + images.Count + "条历史数据");
            }
            else
            {
                MessageBox.Show("你的本地数据已经很全啦,未找到新数据!");
            }
        }
Пример #3
0
        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);
            }
        }