public Playlist() { Songs = new SongCollection(); Name = emptyName; AbsolutePath = emptyOrLoadingPath; Loop = LoopType.Off; }
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(); }