public MissionTrackerWindow(MissionTrackerViewModel viewModel)
        {
            Data        = viewModel;
            DataContext = Data;

            InitializeComponent();
        }
Пример #2
0
        public ConfigurationWindow(MissionTrackerViewModel viewModel)
        {
            Data        = viewModel;
            DataContext = Data;

            InitializeComponent();
            MissionTrackerConfiguration config = MissionTrackerConfiguration.FromFile();

            MaxStarDistanceBox.Text = config.maxDistanceFromCurrent;
            MinStationDistance.Text = config.problemDistanceFromStar;
        }
Пример #3
0
        public ProblematicDestinationCalculator(MissionTrackerViewModel viewModel)
        {
            mViewModel     = viewModel;
            mRepository    = SystemInfoSqlLiteRepository.Instance;
            mStarMapConfig = StarMapConfiguration.FromFile();
            mBaseUrl       = "http://www.edsm.net/";
            var config = MissionTrackerConfiguration.FromFile();

            maxDistanceFromCurrent = int.Parse(config.maxDistanceFromCurrent);
            minStationDistance     = int.Parse(config.problemDistanceFromStar);
        }
Пример #4
0
 public void Stop()
 {
     mViewModel = null;
     mRunning   = false;
 }
Пример #5
0
 public void Reload()
 {
     mViewModel = new MissionTrackerViewModel();
 }