private void OnListViewFileDropCommand(DragEventArgs e) { if (FileDropHandler.ExtractDroppedFiles(e, Settings.MediaExtensionsPackage, out var filesInformation)) { FilesCollection.AddRange(filesInformation.Cast <MediaFileInformation>()); } }
private void OnFileDrop(DragEventArgs e) { if (FileDropHandler.ExtractDroppedFiles(e, Settings.MediaPlayerExtensionsPackage, out var files)) { FileManagerHelper.Request(this, files); return; } MessageBox.Show($"{Strings.InvalidFileType}", "Error"); }