private void PopulatePlaylistList()
        {
            PlaylistList.Clear();
            List <Playlist> temp = QueryManager.GetPlaylists("");

            for (int i = 0; i < temp.Count; i++)
            {
                PlaylistList.Add(temp[i]);
            }
        }
Пример #2
0
        /// <summary>
        /// 初期化する
        /// </summary>
        internal async Task Initialize()
        {
            // プレイリスト一覧を空にする
            PlaylistList.Clear();

            var playlists = await m_YouTubeService.GetMyPlaylists();

            foreach (var playlist in playlists)
            {
                PlaylistList.Add(new PlaylistViewModel(playlist, m_WebClientService));
            }
        }
 public void CreatePlaylist(Playlist playlist)
 {
     playlist.PlaylistId = QueryManager.CreatePlaylist(ref playlist);
     PlaylistList.Add(playlist);
 }