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