Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        private void CreateEmptyPlaylistToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewPlaylistForm newPlaylistForm = new NewPlaylistForm(this, new List <string>(), "");

            newPlaylistForm.Show();
        }