public PackageManager(IAvailablePackagesService availablePackagesService, IPackageVersionService packageVersionService, IPackageService packageService, IFileStorageService fileStorageService, ICommandExecuter commandExecuter, ISettingsService settingsService, IInstalledPackagesService installedPackagesService)
        {
            _packageVersionService = packageVersionService;
            _packageService = packageService;
            _availablePackagesService = availablePackagesService;
            _fileStorageService = fileStorageService;
            _commandExecuter = commandExecuter;
            _settingsService = settingsService;
            _installedPackagesService = installedPackagesService;
            _packageVersionService.VersionChanged += VersionChangedHandler;
            _packageVersionService.RunStarted += PackageVersionServiceStarted;
            _availablePackagesService.RunFinshed += PackagesServiceRunFinished;
            _installedPackagesService.RunFinshed += PackagesServiceRunFinished;
            _packageService.RunFinshed += PackageServiceRunFinished;
            _packageService.RunStarted += PackageServiceRunStarted;
            _availablePackagesService.RunFailed += PackagesServiceRunFailed;
            _installedPackagesService.RunFailed += PackagesServiceRunFailed;
            _availablePackagesService.RunStarted += PackagesServiceRunStarted;
            _installedPackagesService.RunStarted += PackagesServiceRunStarted;

            InitializeComponent();

            tabAvailable.ImageIndex = 0;
            tabInstalled.ImageIndex = 1;
            _installedPackagesService.ListOfDistinctHighestInstalledPackages();
        }
Beispiel #2
0
        public PackageManager(IAvailablePackagesService availablePackagesService, IPackageVersionService packageVersionService, IPackageService packageService, IFileStorageService fileStorageService, ICommandExecuter commandExecuter, ISettingsService settingsService, IInstalledPackagesService installedPackagesService)
        {
            _packageVersionService                 = packageVersionService;
            _packageService                        = packageService;
            _availablePackagesService              = availablePackagesService;
            _fileStorageService                    = fileStorageService;
            _commandExecuter                       = commandExecuter;
            _settingsService                       = settingsService;
            _installedPackagesService              = installedPackagesService;
            _packageVersionService.VersionChanged += VersionChangedHandler;
            _packageVersionService.RunStarted     += PackageVersionServiceStarted;
            _availablePackagesService.RunFinshed  += PackagesServiceRunFinished;
            _installedPackagesService.RunFinshed  += PackagesServiceRunFinished;
            _packageService.RunFinshed            += PackageServiceRunFinished;
            _packageService.RunStarted            += PackageServiceRunStarted;
            _availablePackagesService.RunFailed   += PackagesServiceRunFailed;
            _installedPackagesService.RunFailed   += PackagesServiceRunFailed;
            _availablePackagesService.RunStarted  += PackagesServiceRunStarted;
            _installedPackagesService.RunStarted  += PackagesServiceRunStarted;

            InitializeComponent();

            tabAvailable.ImageIndex = 0;
            tabInstalled.ImageIndex = 1;
            _installedPackagesService.ListOfDistinctHighestInstalledPackages();
        }
Beispiel #3
0
 public Settings(ISettingsService settingsService, ICommandExecuter commandExecutor, ISourceService sourceService, IAvailablePackagesService availablePackagesService)
 {
     _settingsService                      = settingsService;
     _commandExecutor                      = commandExecutor;
     _sourceService                        = sourceService;
     _availablePackagesService             = availablePackagesService;
     _sourceService.SourcesChanged        += _sourceService_SourcesChanged;
     _sourceService.CurrentSourceChanged  += _sourceService_CurrentSourceChanged;
     _availablePackagesService.RunFinshed += _availablePackagesService_RunFinshed;
     InitializeComponent();
     _sourceService.LoadSources();
 }
 public Settings(ISettingsService settingsService, ICommandExecuter commandExecutor, ISourceService sourceService, IAvailablePackagesService availablePackagesService)
 {
     _settingsService = settingsService;
     _commandExecutor = commandExecutor;
     _sourceService = sourceService;
     _availablePackagesService = availablePackagesService;
     _sourceService.SourcesChanged += _sourceService_SourcesChanged;
     _sourceService.CurrentSourceChanged += _sourceService_CurrentSourceChanged;
     _availablePackagesService.RunFinshed += _availablePackagesService_RunFinshed;
     InitializeComponent();
     _sourceService.LoadSources();
 }