public FileExplorerToolboxViewModel(IFileExplorerViewModel viewModel, IFileService fileService, IDirectoryService directoryService, IClipboardService clipboard, ICommandFactory commandFactory)
        {
            CommonViewModel  = viewModel;
            FileService      = fileService;
            DirectoryService = directoryService;
            Clipboard        = clipboard;

            #region Command Initialization
            CopyCommand                = commandFactory.GetCopyCommand(this);
            PasteCommand               = commandFactory.GetPasteCommand(this);
            CutCommand                 = commandFactory.GetCutCommand(this);
            CopyPathCommand            = commandFactory.GetCopyPathCommand(this);
            RemoveCommand              = commandFactory.GetRemoveCommand(this);
            RenameCommand              = commandFactory.GetRenameCommand(this);
            CreateFolderCommand        = commandFactory.GetCreateFolderCommand(this);
            BackCommand                = commandFactory.GetBackCommand(this);
            ForwardCommand             = commandFactory.GetForwardCommand(this);
            GoToParentDirectoryCommand = commandFactory.GetGoToParentDirectoryCommand(this);
            RefreshCommand             = commandFactory.GetRefreshCommand(this);
            #endregion

            CommonViewModel.SelectedElements.CollectionChanged += OnSelectedElementsChanged;
            Clipboard.ClipboardContentChanged += OnClipboardContentChanged;
            CommonViewModel.PropertyChanged   += OnCurrentlyOpenedElementChanged;
        }
 public FilesViewViewModel(IFileExplorerViewModel viewModel)
 {
     CommonViewModel = viewModel;
 }
Ejemplo n.º 3
0
 public FileExplorerForm(IFileExplorerViewModel viewModel, DaysOldStringBuilder daysOldStringBuilder)
 {
     InitializeComponent();
     _viewModel            = viewModel;
     _daysOldStringBuilder = daysOldStringBuilder;
 }
 public FileExplorerViewModelFactory(IFileExplorerViewModel commonVM)
 {
     CommonVM = commonVM;
 }