public SettingsViewModel(ViewModelLocator viewModelLocator)
 {
     _viewModelLocator = viewModelLocator;
     ChangeWallpaper = new DelegateCommand<int>((x) =>
                                                {
                                                	CurrentWallpaper = x;
                                                 RaisePropertyChanged("CurrentWallpaper");
                                                });
     Wallpapers = new ObservableCollection<WallpaperViewModel>()
                  {
                  	new WallpaperViewModel(0),
                     new WallpaperViewModel(1),
                     new WallpaperViewModel(2),
                     new WallpaperViewModel(3),
                     new WallpaperViewModel(4),
                     new WallpaperViewModel(5),
                     new WallpaperViewModel(6),
                  };
     Wallpapers[CurrentWallpaper].IsSelected = true;
 }
        public DrumsViewModel(ViewModelLocator locator)
        {
            _locator = locator;
            var drum0 = new DrumKeeper();
            drum0.Initialize(((App)Application.Current).Sound1);

            var drum1 = new DrumKeeper();
            drum1.Initialize(((App)Application.Current).Sound1);

            var drum2 = new DrumKeeper();
            drum2.Initialize(((App)Application.Current).Sound2);

            var drum3 = new DrumKeeper();
            drum3.Initialize(((App)Application.Current).Sound3);

            var drum4 = new DrumKeeper();
            drum4.Initialize(((App)Application.Current).Sound4);

            var drum5 = new DrumKeeper();
            drum5.Initialize(((App)Application.Current).Sound5);

            var drum7 = new DrumKeeper();
            drum7.Initialize(((App)Application.Current).Sound7);

            var drum8 = new DrumKeeper();
            drum8.Initialize(((App)Application.Current).Sound8);

            var drum9 = new DrumKeeper();
            drum9.Initialize(((App)Application.Current).Sound9);

            var drum11 = new DrumKeeper();
            drum11.Initialize(((App)Application.Current).Sound12);

            var drum12 = new DrumKeeper();
            drum12.Initialize(((App)Application.Current).Sound11);

            var drum13 = new DrumKeeper();
            drum13.Initialize(((App)Application.Current).Sound13);

            var drum14 = new DrumKeeper();
            drum14.Initialize(((App)Application.Current).Sound14);

            Drum = new DrumKeeper[]
                           {
                            drum0,
                           	drum1,
                            drum2,
                            drum3,
                            drum4,
                            drum5,
                            drum7,
                            drum8,
                            drum9,
                            drum11,
                            drum12,
                            drum13,
                            drum14,
                           };

            SetVolume(1, _locator.SettingsViewModel.Volume01);
            SetVolume(2, _locator.SettingsViewModel.Volume2);
            SetVolume(3, _locator.SettingsViewModel.Volume34);
            SetVolume(5, _locator.SettingsViewModel.Volume5);
            SetVolume(7, _locator.SettingsViewModel.Volume7);
            SetVolume(8, _locator.SettingsViewModel.Volume8);
            SetVolume(9, _locator.SettingsViewModel.Volume9);
            SetVolume(11, _locator.SettingsViewModel.Volume1112);
            SetVolume(13, _locator.SettingsViewModel.Volume1314);

            SetIsRightHand(_locator.SettingsViewModel.IsRightHand);
        }