private void LblMp3ExtractMagicArea_DragDrop(object sender, DragEventArgs e) { var files = ValidateDrop(e.Data); if (files.Count == 0) { return; } foreach (var file in files) { using var disc = Disc.LoadAutomagic(file); var path = Path.GetDirectoryName(file); var filename = Path.GetFileNameWithoutExtension(file); AudioExtractor.Extract(disc, path, filename); } }
private void lblMp3ExtractMagicArea_DragDrop(object sender, DragEventArgs e) { var files = validateDrop(e.Data); if (files.Count == 0) { return; } foreach (var file in files) { using (var disc = Disc.FromCuePath(file, new CueBinPrefs())) { var path = Path.GetDirectoryName(file); var filename = Path.GetFileNameWithoutExtension(file); AudioExtractor.Extract(disc, path, filename); } } }