/*===============================================================================================================*/ /* LOAD FILES HANDLER */ /*===============================================================================================================*/ //hendle upload files on drop them upon this private void _onFilesDrop(object sender, DragEventArgs e) { //only if there are files beeing dropped if (e.Data.GetDataPresent(DataFormats.FileDrop)) { //get an array of paths for all files string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); //add the songs to the list this.SongList.AddSongs(FileChecker.PassedFiles(files)); if (this.AudioFile == null || this.OutputDevice == null) { this._setCurrentSong(this.SongList.CurrentSong); } } }