Esempio n. 1
0
 public InstallCommand(
     DownloadPackage downloadPackage,
     ClassifyPackages classifyCommand,
     IFolderCommands folderCommands)
 {
     this.downloadPackage = downloadPackage;
     this.classifyCommand = classifyCommand;
     this.folderCommands = folderCommands;
     this.pkgMover = new PackageMover(this.folderCommands);
     this.targetDropper = new TargetDropper(this.folderCommands);
 }
Esempio n. 2
0
 private void OnEnable()
 {
     var sources = GetSources();
     var listCommand = new ListCommand(sources);
     var fsPackageProvider = new FileSystemPackageProvider();
     var folderCommands = new FileSystemFolderCommands();
     var classifyPackages = new ClassifyPackages(fsPackageProvider);
     var downloadPackage = new DownloadPackage(sources, folderCommands);
     var installCommand = new InstallCommand(
         downloadPackage,
         classifyPackages,
         new FileSystemFolderCommands());
     this.searchTab = new SearchTab(listCommand, installCommand);
 }