public PackagesViewModels( IPackageManagementSolution solution, IRegisteredPackageRepositories registeredPackageRepositories, IThreadSafePackageManagementEvents packageManagementEvents, IPackageActionRunner actionRunner, ITaskFactory taskFactory) { var packageViewModelFactory = new PackageViewModelFactory(solution, packageManagementEvents, actionRunner); //var updatedPackageViewModelFactory = new UpdatedPackageViewModelFactory(packageViewModelFactory); //var installedPackageViewModelFactory = new InstalledPackageViewModelFactory(packageViewModelFactory); IRecentPackageRepository recentPackageRepository = PackageManagementServices.RecentPackageRepository; AvailablePackagesViewModel = new AvailablePackagesViewModel (solution, registeredPackageRepositories, recentPackageRepository, packageViewModelFactory, taskFactory); //InstalledPackagesViewModel = new InstalledPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, installedPackageViewModelFactory, taskFactory); //UpdatedPackagesViewModel = new UpdatedPackagesViewModel(solution, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory); //RecentPackagesViewModel = new RecentPackagesViewModel(packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); }
public PackagesViewModels( IPackageManagementSolution solution, IRegisteredPackageRepositories registeredPackageRepositories, IThreadSafePackageManagementEvents packageManagementEvents, IPackageActionRunner actionRunner, ITaskFactory taskFactory) { var packageViewModelFactory = new PackageViewModelFactory(solution, packageManagementEvents, actionRunner); //var updatedPackageViewModelFactory = new UpdatedPackageViewModelFactory(packageViewModelFactory); //var installedPackageViewModelFactory = new InstalledPackageViewModelFactory(packageViewModelFactory); IRecentPackageRepository recentPackageRepository = PackageManagementServices.RecentPackageRepository; AvailablePackagesViewModel = new AvailablePackagesViewModel(solution, registeredPackageRepositories, recentPackageRepository, packageViewModelFactory, taskFactory); //InstalledPackagesViewModel = new InstalledPackagesViewModel(solution, packageManagementEvents, registeredPackageRepositories, installedPackageViewModelFactory, taskFactory); //UpdatedPackagesViewModel = new UpdatedPackagesViewModel(solution, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory); //RecentPackagesViewModel = new RecentPackagesViewModel(packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory); }