private void CustomSongsDataGridView_DragDrop(object sender, DragEventArgs e) { string[] fileList = (string[])e.Data.GetData(DataFormats.FileDrop, false); AddNewSongs.AddNewSongs addNewSongs = new AddNewSongs.AddNewSongs(fileList); this.ReloadSongs(); }
private void CustomSongsEditButton_Click(object sender, EventArgs e) { string[] path = { this.GetDestinationPath() }; if (!String.IsNullOrWhiteSpace(path[0])) { AddNewSongs.AddNewSongs songs = new AddNewSongs.AddNewSongs(path); if (songs.changed) { File.Delete(path[0]); } this.ReloadSongs(); } }