private void AddSongsToNewPlaylist(DirectoryInfo parentDirectoryInfo, bool recursive) { List <string> songPaths = GetSongPaths(parentDirectoryInfo, recursive); if (songPaths.Count == 0) { MessageBox.Show("No songs were found!"); return; } NewPlaylistForm newPlaylistForm = new NewPlaylistForm(this, songPaths, parentDirectoryInfo.Name); newPlaylistForm.Show(); }
private void AddQueueToNewPlaylist() { List <string> songPaths = new List <string>(); foreach (QueuedSong queuedSong in mainPlaylist) { if ((!queuedSong.fileInfo.Extension.Equals(".wzst"))) { songPaths.Add(queuedSong.GetSongPath()); } } if (songPaths.Count == 0) { MessageBox.Show("No songs were found!"); return; } NewPlaylistForm newPlaylistForm = new NewPlaylistForm(this, songPaths, ""); newPlaylistForm.Show(); }
private void CreateEmptyPlaylistToolStripMenuItem_Click(object sender, EventArgs e) { NewPlaylistForm newPlaylistForm = new NewPlaylistForm(this, new List <string>(), ""); newPlaylistForm.Show(); }