private void ClickCopy(Object sender, RoutedEventArgs args)
 {
     if (_viewModel.DirViewVM.CurrentItem != null && _viewModel.DirViewVM.CurrentItem.DirType == (int)ObjectType.File)
     {
         copyPath = _viewModel.MainWindowVM.getPath(_viewModel.Id);
         _viewModel.RefreshCurrentItems();
         isCut = false;
     }
 }
Пример #2
0
 void PasteCmdExecuted(object target, ExecutedRoutedEventArgs e)
 {
     if (isCut)
     {
         MoveFileService.PastFile(copyPath, myViewModel);
         File.Delete(copyPath);
         copyPath = null;
     }
     else
     {
         MoveFileService.PastFile(copyPath, myViewModel);
     }
     myViewModel.RefreshCurrentItems();
 }