public StudyFlashcard() { //Assigns commands to methods. SelectSetCommand = new Gibson_Flashcards.Interface.DelegateCommand(SelectCardSet, IsNotRunning); NextCardCommand = new Gibson_Flashcards.Interface.DelegateCommand(NextCard, CanNextCard); FlipCardCommand = new Gibson_Flashcards.Interface.DelegateCommand(FlipCard, ReadyShowBackSide); MainMenuCommand = new Gibson_Flashcards.Interface.DelegateCommand(ResetData); SpeakCommand = new Gibson_Flashcards.Interface.DelegateCommand(CaptureVoice, ReadyPronunciation); }
//Declarations, Instantiations, Assignments. public MainViewModel() { //Assigns Button Commands to buttons. CreateSetCommand = new Gibson_Flashcards.Interface.DelegateCommand(CreateNewSet); StudyCommand = new Gibson_Flashcards.Interface.DelegateCommand(Study); }