public CreatePresetViewModel(RunConfiguration configuration, IPresetStorage presetStorage, IPresetService presetService) { _configuration = configuration; _presetStorage = presetStorage; _presetService = presetService; PresetName = "Default"; }
public MainViewModel(IPresetStorage presetStorage, IPresetService presetService, IKeyboardService keyboardService) { _presets = new ObservableCollection <RunConfiguration>(); _presetStorage = presetStorage; _presetService = presetService; _keyboardService = keyboardService; SetDefaultConfiguration(); _presetService.SharedPresetCollection.CollectionChanged += CollectionChanged; }
public PresetService(IPresetStorage presetStorage) { _storage = presetStorage; SharedPresetCollection = new ObservableCollection <RunConfiguration>(_storage.Presets); }