/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public SpellingWordViewModel(ISpellingWordService spellingWordService) { _spellingWordService = spellingWordService; _spellingWordService.GetSpellingWord( (item, error) => { if (error != null) { // Report error here return; } WelcomeTitle = item.SpellWord + item.UsageSentance; }); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public SpellingWordViewModel(ISpellingWordService spellingWordService) { _spellingWordService = spellingWordService; _spellingWordService.GetSpellingWord( (item, error) => { if (error != null) { // Report error here return; } WelcomeTitle = item.SpellWord + item.UsageSentance; }); }