public static void QueryFromHistory(WordHistoryModel historyViewModel)
        {
            var _queryword = historyViewModel.Word;

            CurrentSourceLanguage = (Language)historyViewModel.SourceLanguage;
            CurrentTargetLanguage = (Language)historyViewModel.TargetLanguage;
            DefinationPageViewModel.Current.UpdateViewModel(_queryword, QueryWord(_queryword), LanguageHelper.ConvertToLangCode(CurrentSourceLanguage), LanguageHelper.ConvertToLangCode(CurrentTargetLanguage));//前台更新,加载所有词典的UI
            HomePageViewModel.Current.SearchUIState = SearchUIState.Searched;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="_queryword">待查询的单词 Word which is going to be queried</param>
        /// <param name="languageIndicatorIndex">语言指示器的当前索引 Current Index of the Language Indicator</param>
        public static void QueryFromAutoSuggestBox(string _queryword)
        {
            _queryword = DictionaryService.HandleQueryWord(_queryword);//处理、裁剪要查询的单词
            Language lang;

            if (AdjustLanguage(_queryword, out lang))
            {
                DefinationPageViewModel.Current.UpdateViewModel(_queryword, QueryWord(_queryword), LanguageHelper.ConvertToLangCode(CurrentSourceLanguage), LanguageHelper.ConvertToLangCode(CurrentTargetLanguage));//前台更新,加载所有词典的UI
            }
            else
            {
                DefinationPageViewModel.Current.UpdateViewModel(_queryword, QueryWord(_queryword, lang), LanguageHelper.ConvertToLangCode(CurrentSourceLanguage), LanguageHelper.ConvertToLangCode(CurrentTargetLanguage));//前台更新,加载所有词典的UI
            }
            HomePageViewModel.Current.SearchUIState = SearchUIState.Searched;
            WordHistoryModel _wordhistoryitem = new WordHistoryModel()
            {
                Word           = DefinationPageViewModel.Current.Word,
                SourceLanguage = (int)CurrentSourceLanguage,
                TargetLanguage = (int)CurrentTargetLanguage
            };

            SearchSuggestionPageViewModel.Current.Add_WordHistory(_wordhistoryitem);
        }
 public static void Delete(WordHistoryModel task)
 {
     SQLManager.Delete(task);
 }
 public static void Update(WordHistoryModel updatingTaskModel)
 {
     SQLManager.Update(updatingTaskModel);
 }
 public static WordHistoryModel Add(WordHistoryModel wordHistoryModel)
 {
     wordHistoryModel.ID = SQLManager.QueryMaxID();
     SQLManager.Add(wordHistoryModel);
     return(wordHistoryModel);
 }