Ejemplo n.º 1
0
        private void DoFileOperation(FileOperationsEnum foe)
        {
            if (SelectedMatchedFile == null)
            {
                return;
            }
            switch (foe)
            {
            case FileOperationsEnum.OpenDirectory:
                fileOperationService.OpenDirectory(SelectedMatchedFile.FullFilename);
                break;

            case FileOperationsEnum.OpenFile:
                fileOperationService.OpenFile(SelectedMatchedFile.FullFilename);
                break;

            case FileOperationsEnum.CopyFullNamePath:
                fileOperationService.CopyFullNamePath(SelectedMatchedFile.FullFilename);
                break;

            case FileOperationsEnum.CopyName:
                fileOperationService.CopyName(SelectedMatchedFile.FullFilename);
                break;

            default:
                throw new NotSupportedException();
            }
        }