/// <summary> /// Handles the Click event of the mnuAddTrackToPlaylist control. /// </summary> private void mnuAddTrackToPlaylist_Click(object sender, EventArgs e) { var menu = sender as ToolStripMenuItem; if (menu == null) { return; } var playlist = menu.Text; CollectionHelper.AddTracksToCollection(playlist, GetSelectedLibraryTracks()); }
private void UpdateData() { var playlistName = txtPlaylistName.Text.Trim(); if (playlistName == "") { return; } Cursor = Cursors.Hand; Application.DoEvents(); CollectionHelper.AddTracksToCollection(playlistName, Tracks); DialogResult = DialogResult.OK; Close(); }