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();
            }
        }
Beispiel #2
0
        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 FactionsService(IEliteBgsRepository eliteBgsRepository)
 {
     _eliteBgsRepository = eliteBgsRepository;
 }
 public SolarSystemsService(IEliteBgsRepository eliteBgsRepository, IEddbRepository eddbRepository)
 {
     _eliteBgsRepository = eliteBgsRepository;
     _eddbRepository     = eddbRepository;
 }
Beispiel #5
0
 public AssetsService(IEliteBgsRepository eliteBgsRepository)
 {
     _eliteBgsRepository = eliteBgsRepository;
 }
Beispiel #6
0
 public TickService(IEliteBgsRepository eliteBgsRepository)
 {
     _eliteBgsRepository = eliteBgsRepository;
 }