Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
            }
        }