private bool AddToWhiteList(string strValue) { if (!m_mapWhiteList.ContainsKey(strValue)) { SpellFixerWord sfw = m_project.GetNewSpellFixerWord(strValue, null); m_mapWhiteList.Add(sfw); return(true); } return(false); }
private void RetaskWhiteListSfw(string strKey, string strNewValue) { SpellFixerWord sfw = m_mapWhiteList[strKey]; m_mapWhiteList.Remove(strKey); if (!m_mapWhiteList.ContainsKey(strNewValue)) { sfw.Value = strNewValue; sfw.InitializeNonStaticData(m_project); m_mapWhiteList.Add(sfw); } }