private async Task RefreshPlaylistItems() { await _dispatcherQueue.EnqueueAsync(async() => { NowLoading.Value = true; try { using (ItemsView.DeferRefresh()) { _sourcePlaylistItems.Clear(); // TODO: タイムアウト処理を追加する using var _ = await _niconicoSession.SigninLock.LockAsync(); await _userMylistManager.WaitUpdate(); foreach (var item in _userMylistManager.Mylists.Where(x => x.MylistId.IsWatchAfterMylist is false)) { _sourcePlaylistItems.Add(item); } } } finally { NowLoading.Value = false; } AddMylistGroupCommand.NotifyCanExecuteChanged(); }); }