public ExpansionPlanner() { InitializeComponent(); eliteBgsRepository = new EliteBgsRepository(); eddbRepository = new EddbRepository(); solarSystemsService = new SolarSystemsService(eliteBgsRepository, eddbRepository); fileSystemRepository = new FileSystemRepository(); tickService = new TickService(eliteBgsRepository); userSettingsService = new UserSettingsService(fileSystemRepository); GetSettings(); if (!string.IsNullOrEmpty(SystemNameTextBox.Text)) { expansionReport.ExpandFromSystem = SystemNameTextBox.Text; GetExpansionReport(); } }
public MainWindow() { InitializeComponent(); eliteBgsRepository = new EliteBgsRepository(); eddnRepository = new EddnRepository(); eddbRepository = new EddbRepository(); assetsService = new AssetsService(eliteBgsRepository); factionsService = new FactionsService(eliteBgsRepository); solarSystemsService = new SolarSystemsService(eliteBgsRepository, eddbRepository); tickService = new TickService(eliteBgsRepository); situationReportsService = new SituationReportsService(assetsService, factionsService, solarSystemsService, tickService); fileSystemRepository = new FileSystemRepository(); userSettingsService = new UserSettingsService(fileSystemRepository); CheckForUpdates(); GetSituations(); //eddnRepository.ListenToEddn(); }
public SolarSystemsService(IEliteBgsRepository eliteBgsRepository, IEddbRepository eddbRepository) { _eliteBgsRepository = eliteBgsRepository; _eddbRepository = eddbRepository; }