void addWordToTheMasterDictionary(string word) { try { SpLexicon lex = new SpLexicon(); lex.AddPronunciation(word, 1033); textBoxNewWordToAdd.Text = ""; RenewGridViewDictionaryItems(); } catch { } }
private void RenewGridViewDictionaryItems() { gridViewDictionaryItems.Rows.Clear(); ISpeechLexiconWords splexWords; SpLexicon lex = new SpLexicon(); int generationId = 0; splexWords = lex.GetWords(SpeechLexiconType.SLTUser, out generationId); foreach (ISpeechLexiconWord splexWord in splexWords) { gridViewDictionaryItems.Rows.Add(splexWord.Word); } }
private void deleteWordFromTheDictionary(string wordToDelete) { SpLexicon lex = new SpLexicon(); lex.RemovePronunciation(wordToDelete, 1033); RenewGridViewDictionaryItems(); }