public PlaylistEditorForm(Playlist playlist, MainForm mainForm) { InitializeComponent(); this.FormClosing += PlaylistEditor_Closing; this._playlist = playlist; this._mainForm = mainForm; _currentPlaylistName = playlist.Name; _playlistName.Text = playlist.Name; _playlistSaver.Visible = true; _playlistSaver.Enabled = true; _playlistCreator.Visible = false; _playlistCreator.Enabled = false; _playlistDeleter.Visible = true; _playlistDeleter.Enabled = true; _filesInPlaylist.Items.AddRange(playlist.GetSongsKeys()); _refreshingFolders.Items.AddRange(_playlist.GetRefreshingFolders()); }
private void RefreshingFolders_IndexChanged(object sender, EventArgs e) { _playlist.RemoveRefreshingFolder(_refreshingFolders.Items[_refreshingFolders.SelectedIndex] as string); _refreshingFolders.Items.Clear(); _refreshingFolders.Items.AddRange(_playlist.GetRefreshingFolders()); }