Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Add records to the m_cache.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        private void AddWords(string words, string pattern, string gloss)
        {
            m_recCache.Clear();
            var entry = new RecordCacheEntry(_prj);

            entry.SetValue(kPhonetic, words);
            entry.SetValue(kCVPattern, pattern);
            entry.SetValue(kGloss, gloss);
            entry.NeedsParsing = true;
            entry.DataSource   = m_dataSource;
            m_recCache.Add(entry);
            m_recCache.BuildWordCache(null);

            m_cache.Clear();
            foreach (var wcEntry in m_recCache.WordCache)
            {
                m_cache.Add(wcEntry);
            }
        }