Пример #1
0
 public CreatePresetViewModel(RunConfiguration configuration, IPresetStorage presetStorage,
                              IPresetService presetService)
 {
     _configuration = configuration;
     _presetStorage = presetStorage;
     _presetService = presetService;
     PresetName     = "Default";
 }
Пример #2
0
 public MainViewModel(IPresetStorage presetStorage, IPresetService presetService,
                      IKeyboardService keyboardService)
 {
     _presets         = new ObservableCollection <RunConfiguration>();
     _presetStorage   = presetStorage;
     _presetService   = presetService;
     _keyboardService = keyboardService;
     SetDefaultConfiguration();
     _presetService.SharedPresetCollection.CollectionChanged += CollectionChanged;
 }
Пример #3
0
 public PresetService(IPresetStorage presetStorage)
 {
     _storage = presetStorage;
     SharedPresetCollection = new ObservableCollection <RunConfiguration>(_storage.Presets);
 }