Exemple #1
0
        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();
        }
Exemple #2
0
 public void SetSoundPreferences(SoundPreferences preferences)
 {
     soundPreferences = preferences;
     SoundsOn         = preferences.Enable;
 }
 public PlayerData()
 {
     SoundPreferences = new SoundPreferences();
 }