Ejemplo n.º 1
0
        public ConfiguratorViewModel(JsonManager jsonManager)
        {
            _stateManager = new ConfiguratorStateManager(jsonManager, _logger);

            _logger = new Common.IO.Logger(Paths.ConfiguratorLogFileName);

            TryLoadLastAppState();

            ApplyCommand = new DelegateCommand(Apply);
            ExitCommand  = new DelegateCommand(Application.Current.Shutdown);
        }
Ejemplo n.º 2
0
 private void InitializeManagers(JsonManager manager)
 {
     _configuratorStateManager = new ConfiguratorStateManager(manager, _logger);
     _elementColorInfosManager = new ElementColorInfosManager(manager, _logger);
     _typeColorOffsetsManager  = new TypeColorOffsetsManager(manager, _logger);
 }