public ExternalFilesViewModel(IExternalFilesRepositories repos, IUserNotify notify) { this.repos = repos; this.notify = notify; addExternalFileCommand = ViewModelSource.Create(() => new AddExternalFileCommand(repos.FileRepo, this, notify)); downloadFileCommand = ViewModelSource.Create(() => new DownloadFileCommand(repos.FileRepo, this, notify)); viewFileCommand = ViewModelSource.Create(() => new ViewFileCommand(repos.FileRepo, this, notify)); sizeLimit = repos.ProjectRepo.GetSingle().DocumentSizeLimit; }