private void btn_Test_Click(object sender, RoutedEventArgs e) { Vocabulary _item = DataAccess.GetVocabularyById(App.WordId); if (_item.Id == 0) { App.WordId = DataAccess.GetFirstWordId(); _item = DataAccess.GetVocabularyById(App.WordId); } TranslateService.goGetRelatedAsync(_item); }
private void ProcessBackgroundGetRelatedWords() { try { var ListVocabulary = DataAccess.GetListVocabularyToGetRelatedWords(); foreach (var _item in ListVocabulary) { TranslateService.goGetRelatedAsync(_item); } Helper.ShowToast("Crawling: Process Background Get Related Words Finished."); } catch (Exception ex) { Helper.ShowToast("Crawling: Process Background Get Related Words Fail: " + ex.Message); } }