QvcMainForm.MainLV.cs 787 B

123456789101112131415161718192021222324252627282930313233
  1. using QVCopier.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Windows.Forms;
  5. namespace QVCopier
  6. {
  7. public partial class QvcMainForm : Form
  8. {
  9. //TODO: create workItem
  10. //TODO: list and filters
  11. private void MainListView_DragEnter(object sender, DragEventArgs e)
  12. {
  13. e.Effect = e.Data.GetDataPresent(DataFormats.FileDrop)
  14. ? DragDropEffects.Copy
  15. : DragDropEffects.None;
  16. }
  17. private void MainListView_DragDrop(object sender, DragEventArgs e)
  18. {
  19. var items = (string[])e.Data.GetData(DataFormats.FileDrop);
  20. //TODO: looking up filesystem
  21. foreach (var item in items)
  22. {
  23. }
  24. }
  25. }
  26. }