bool AddPronunciation(ListView listView, String term, String replacement) { bool retVal = true; try { if ( String.IsNullOrEmpty(term) || String.IsNullOrEmpty(replacement)) { Log.Debug("Cannot add pronunciation."); return false; } if (!Context.AppPronunications.Exists(term)) { Pronunciation pronunciation = new Pronunciation(term, replacement); Context.AppPronunications.Add(pronunciation); ImportPronunciationIntoListView(listView); selectItemInListView(listView, term); } else { retVal = false; } } catch { retVal = false; } return retVal; }