コード例 #1
0
        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);
            }
        }
コード例 #2
0
 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);
     }
 }