public SoundsViewModel(IMessanger commonMessanger) { messanger = commonMessanger; soundPreferences = messanger.GetSoundPreferences(); EnableSounds = soundPreferences.Enable; PlaySoundCommand = new RelayCommand(PlaySound); SetSoundCommand = new RelayCommand(SetSound); DeleteSoundCommand = new RelayCommand(DeleteSound); AddNewSoundCommand = new RelayCommand(AddSound); LoadData(); }
public void SetSoundPreferences(SoundPreferences preferences) { soundPreferences = preferences; SoundsOn = preferences.Enable; }
public PlayerData() { SoundPreferences = new SoundPreferences(); }