private void View_CopyItems(object sender, EventArgs e) { var paths = _selection.GetPathsInSelection(); try { _clipboard.SetFiles(new ClipboardFileDrop(paths, DragDropEffects.Copy)); } catch (ExternalException ex) { _dialogView.ClipboardIsBusy(ex.Message); } }
private void View_CopyDirectory(object sender, DirectoryEventArgs e) { try { _clipboard.SetFiles(new ClipboardFileDrop(new[] { e.FullPath }, DragDropEffects.Copy)); } catch (ExternalException ex) { _dialogView.ClipboardIsBusy(ex.Message); } }