Example #1
0
        private void editFilterPlaylist(object sender, EventArgs e)
        {
            var clickedPlaylist = playlists[clickedPlaylistIndex] as FilterPlaylist;
            if (clickedPlaylist != null)
            {
                FilterPlaylistWindow popup = new FilterPlaylistWindow(clickedPlaylist);
                popup.SetStartPosition();

                DialogResult dr = popup.ShowDialog();
                if (dr == System.Windows.Forms.DialogResult.OK)
                {
                    clickedPlaylist.Filters = popup.GetFilterList();
                    clickedPlaylist.FilterLibrary();

                    if (showingPlaylist != clickedPlaylist)
                        ChangeToPlaylist(clickedPlaylist);
                    else
                        UpdateShowingPlaylist();
                }
            }
        }
Example #2
0
        private void ShowCreateNewFilterPlaylistPopup()
        {
            FilterPlaylistWindow popup = new FilterPlaylistWindow();
            popup.SetStartPosition();

            DialogResult dr = popup.ShowDialog();
            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                var filters = popup.GetFilterList();
                var newFpl = new FilterPlaylist(library, GetNewPlaylistName(true), filters);
                playlists.Add(newFpl);
                SetPlaylistGridView();
                ChangeToPlaylist(newFpl);
            }
        }