async Task GrabUserItemList() { try { ItemList = await CollectionLibraryProvider.QueryUserAnimeMangaListAsync(DirectoryDetail.AnimeOrManga); await Dispatcher.RunAsync(CoreDispatcherPriority.High, () => { watch.ItemsSource = ItemList.Where(x => x.Itemproperty.My_status == DirectoryDetail.DirectoryType - 3); }); } catch (Exception e) { //TODO: show error message?? e.Message } }
public async void GrabUserItemList() { try { ItemList = await CollectionLibraryProvider.QueryUserAnimeMangaListAsync(Directory.AnimeOrManga); ItemItemSource = ItemList.Where(x => x.Itemproperty.My_status == Directory.DirectoryType - 3); int count = ItemItemSource.Count(); if (count == 0) { ErrorVisibility = Visibility.Visible; } ItemList = null; } catch (Exception e) { } }