//public RenamePlaylist(Form1 form, DataSet1 dataset, AxWindowsMediaPlayer mp, PlayListManager plm)
        //{
        //    InitializeComponent();

        //    manager = plm;
        //    this.otherForm = form;
        //    this.dataset = dataset;
        //    //manager = new PlayListManager(dataset);
        //    this.mp = mp;
        //}

        private void RenamePlaylist_Load(object sender, EventArgs e)
        {
            List <string> playlists = manager.LoadPlaylists();

            foreach (var item in playlists)
            {
                comboBox_playlists.Items.Add(item);
            }
        }
        private void updateOpenTSMI()
        {
            List <string> playLists = manager.LoadPlaylists();

            openToolStripMenuItem.DropDownItems.Clear();
            foreach (var playlist in playLists.OrderBy(playListName => playListName))
            {
                ToolStripMenuItem tsmi = CreateOpenMenuItem(playlist);
                openToolStripMenuItem.DropDownItems.Add(tsmi);
            }
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            manager = new PlayListManager(dataset);
            List <string> playlists = manager.LoadPlaylists();

            openToolStripMenuItem.DropDownItems.Clear();
            foreach (var item in playlists.OrderBy(playlistName => playlistName))
            {
                ToolStripMenuItem tsmi = CreateOpenMenuItem(item);
                openToolStripMenuItem.DropDownItems.Add(tsmi);
            }
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            manager = new PlayListManager(dataset);
            List<string> playlists = manager.LoadPlaylists();

            openToolStripMenuItem.DropDownItems.Clear();
            foreach (var item in playlists.OrderBy(playlistName => playlistName))
            {
                ToolStripMenuItem tsmi = CreateOpenMenuItem(item);
                openToolStripMenuItem.DropDownItems.Add(tsmi);
            }
        }