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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        public void AddPlaylistTab(string playlistName, List <string> songPaths)
        {
            TabPage tabPage = new TabPage
            {
                BackColor = System.Drawing.Color.FromArgb(50, 50, 50),
                Text      = playlistName
            };
            DataGridView dataGridView = new SongListViewForm(this, playlistName, songPaths).GetDataGridView();

            tabPage.Controls.Add(dataGridView);

            playlistNames.Add(playlistName);
            playlistViewMap.Add(playlistName, dataGridView);

            PlaylistTabControl.Controls.Add(tabPage);

            PlaylistTabControl.Visible = true;
            SizePlaylistTabs();
        }