private async void btn_Refresh_Click(object sender, RoutedEventArgs e) { if (this.topViewDS != null) { TitleControl.DS_OnLoadMoreStarted(0); await this.topViewDS.Refresh(); TitleControl.DS_OnLoadMoreCompleted(0); } }
private async void LoadData() { this.topBloggerDS = new RecommendBloggerDS(); this.gv_Bloggers.ItemsSource = this.topBloggerDS.Bloggers; TitleControl.DS_OnLoadMoreStarted(0); await topBloggerDS.LoadRemoteData(); TitleControl.DS_OnLoadMoreCompleted(0); this.DataContext = this.topBloggerDS.Bloggers; }
private async void btn_Refresh_Click(object sender, RoutedEventArgs e) { if (sz_CategoryPosts.IsZoomedInViewActive) { if (this.categoryDS != null) { TitleControl.DS_OnLoadMoreStarted(0); await this.categoryDS.Refresh(); TitleControl.DS_OnLoadMoreCompleted(0); } } }
private async void btn_Refresh_Click(object sender, RoutedEventArgs e) { try { TitleControl.DS_OnLoadMoreStarted(0); await FavoriteCategoryDS.Instance.LoadData(); await FavoriteAuthorDS.Instance.LoadData(); await FavoritePostDS.Instance.Refresh(); TitleControl.DS_OnLoadMoreCompleted(0); } catch (Exception) { } }