Esempio n. 1
0
 public SearchTab(
     ListCommand listCommand,
     InstallCommand installCommand)
 {
     this.listCommand = listCommand;
     this.installCommand = installCommand;
 }
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);
 }