public Preset() { _keys = new ObservableCollection <VKey>(); _soundCollection = new ObservableObjectCollection <Sound>(); Keys.CollectionChanged += (sender, e) => RaisePropertyChanged("Keys"); SoundCollection.CollectionChanged += (sender, e) => RaisePropertyChanged("SoundCollection"); SoundCollection.CollectionChanged += (sender, e) => RaisePropertyChanged("SelectedSound"); }
public ConfigurationModel() { PresetCollection = new ObservableObjectCollection <Preset>(); SoundShortcuts = new SoundShortcuts(); PresetCollection.CollectionChanged += (sender, e) => RaisePropertyChanged("PresetCollection"); PresetCollection.CollectionChanged += (sender, e) => RaisePropertyChanged("SelectedPreset"); SoundShortcuts.PropertyChanged += (sender, e) => RaisePropertyChanged("SoundShortcuts"); Volume = 100; PrimaryDeviceVolume = 100; SecondaryDeviceVolume = 100; WindowHeight = 300; WindowWidth = 500; SoundsWidth = 1; }