public ShellViewModel() { LoadNotes(); LoadMMDevices(); soundPlayer = new SoundPlayerViewModel(this, this); soundPlayer.NoteChanged += SoundPlayerOnNoteChanged; AnswerBoard = new AnswerBoardViewModel(notes, soundPlayer.CurrentNote, this); }
private void SoundPlayerOnNoteChanged(NoteViewModel oldNote, NoteViewModel newNote) { AnswerBoard = new AnswerBoardViewModel(notes, newNote, this); }