private void ShowSonglistToolStripMenuItem_Click(object sender, EventArgs e) { songPaths = new List <string>(); foreach (DataGridViewRow row in DataGridView.Rows) { songPaths.Add(row.Cells[0].Value.ToString()); } SongListViewForm songListViewForm = new SongListViewForm(musicPlayer, null, songPaths); songListViewForm.Show(); }
private void AddSongsToNewSonglistView(DirectoryInfo parentDirectoryInfo, bool recursive) { List <string> songPaths = GetSongPaths(parentDirectoryInfo, recursive); if (songPaths.Count == 0) { MessageBox.Show("No songs were found!"); return; } SongListViewForm songListViewForm = new SongListViewForm(this, null, songPaths); songListViewForm.Show(); }