Ejemplo n.º 1
0
 private void ApplyChanges()
 {
     DictionaryViewModel.ApplyChanges();
     OtherViewModel.ApplyChanges();
     PointingAndSelectingViewModel.ApplyChanges();
     MIDIViewModel.ApplyChanges();
     SoundsViewModel.ApplyChanges();
     VisualsViewModel.ApplyChanges();
     WordsViewModel.ApplyChanges();
 }
Ejemplo n.º 2
0
        public ManagementViewModel(
            IMIDIService midiService,
            IAudioService audioService,
            IDictionaryService dictionaryService)
        {
            //Instantiate child VMs
            DictionaryViewModel           = new DictionaryViewModel(dictionaryService);
            OtherViewModel                = new OtherViewModel();
            PointingAndSelectingViewModel = new PointingAndSelectingViewModel();
            MIDIViewModel    = new MIDIViewModel(midiService);
            SoundsViewModel  = new SoundsViewModel(audioService);
            VisualsViewModel = new VisualsViewModel();
            WordsViewModel   = new WordsViewModel(dictionaryService);

            //Instantiate interaction requests and commands
            ConfirmationRequest = new InteractionRequest <Confirmation>();
            OkCommand           = new DelegateCommand <Window>(Ok);     //Can always click Ok
            CancelCommand       = new DelegateCommand <Window>(Cancel); //Can always click Cancel
        }