/// <summary> /// アクティブなタブの要素一覧を更新する /// </summary> private async void UpdateActiveTab() { // 未選択の場合は何もしない if (SelectedItem.Value == null) { return; } switch (ActiveTab.Value) { case ItemType.Playlist: var playlists = await m_YouTubeService.SearchPlaylistByChannelId(SelectedItem.Value.Id); TargetPlaylistList.Clear(); foreach (var playlist in playlists) { TargetPlaylistList.Add(new PlaylistViewModel(playlist, m_WebClientService)); } break; case ItemType.Video: var videos = await m_YouTubeService.SearchVideoByChannelId(SelectedItem.Value.Id); TargetVideoList.Clear(); foreach (var video in videos) { TargetVideoList.Add(new VideoViewModel(video, m_WebClientService)); } break; } }