Пример #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();
        }