private void OnFileDrop(DragEventArgs e) { if (FileDropHandler.ExtractDroppedFiles(e, Settings.MediaPlayerExtensionsPackage, out var files)) { FileManagerHelper.Request(this, files); return; } MessageBox.Show($"{Strings.InvalidFileType}", "Error"); }
private void OnBrowseFiles() { var fileDialog = new OpenFileDialog { Filter = Settings.MediaPlayerExtensionPackageFilter.Filter, Multiselect = true }; if (fileDialog.ShowDialog().GetValueOrDefault()) { var files = fileDialog.FileNames.Select(FileProcesser.Selector); FileManagerHelper.Request(this, files); OnNotify(new MediaEventArgs <MediaControlEventType>(MediaControlEventType.BrowseClick, files)); } }