Example #1
0
 public Task StartControllerAsync()
 {
     Subscribe();
     _telemetrySettingsDto = _telemetrySettingsRepository.LoadOrCreateNew();
     ReloadGraphCollection();
     Graphs.ForEach(InitializeViewModel);
     return(Task.CompletedTask);
 }
        private void OpenWindow()
        {
            TelemetrySettingsDto telemetrySettingsDto = _telemetrySettingsRepository.LoadOrCreateNew();

            _settingsWindowViewModel.FromModel(telemetrySettingsDto);
            _settingsWindowViewModel.IsWindowOpened = true;
        }
Example #3
0
        public Task StartControllerAsync()
        {
            _telemetryViewsSynchronization.NewSessionLoaded += TelemetryViewsSynchronizationOnNewSessionLoaded;
            TelemetrySettings = _telemetrySettingsRepository.LoadOrCreateNew();
            if (TelemetrySettings.CarsProperties == null)
            {
                TelemetrySettings.CarsProperties = new CarsProperties();
            }

            return(Task.CompletedTask);
        }