示例#1
0
 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);
 }
示例#2
0
        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);
            }
        }