コード例 #1
0
        public Playlist()
        {
            Songs = new SongCollection();

            Name         = emptyName;
            AbsolutePath = emptyOrLoadingPath;

            Loop = LoopType.Off;
        }
コード例 #2
0
        public async Task Reset(StopOperationToken stopToken)
        {
            IReadOnlyList <StorageFile> files = await GetStorageFolderFiles();

            Song[] foundSongs = (await GetSongsFromStoragefiles(files, stopToken)).ToArray();

            if (stopToken.IsStopped)
            {
                return;
            }

            Songs       = new SongCollection(foundSongs, ShuffleType.Off, null);
            CurrentSong = Songs.Shuffle.FirstOrDefault();
        }