Example #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();
        }