SetEntry() private méthode

private SetEntry ( int hvoEntry ) : void
hvoEntry int
Résultat void
Exemple #1
0
        private void m_btnLookup_Click(object sender, System.EventArgs e)
        {
            using (LexEntryUi leui = GetSelWord())
            {
                if (leui == null)
                {
                    ShowNotInDictMessage(this);
                    return;
                }

                int[]      domains;
                int[]      lexrels;
                IVwCacheDa cdaTemp;
                if (!LoadDomainAndRelationInfo(m_cache, leui.Object.Hvo, out domains, out lexrels, out cdaTemp, this))
                {
                    return;
                }
                m_cdaTemp.ClearAllData();
                // copy the names loaded into the even more temporary cda to the main one.
                foreach (int hvoDomain in domains)
                {
                    m_cdaTemp.CacheStringProp(hvoDomain, RelatedWordsVc.ktagName,
                                              (cdaTemp as ISilDataAccess).get_StringProp(hvoDomain, RelatedWordsVc.ktagName));
                }
                foreach (int hvoLexRel in lexrels)
                {
                    m_cdaTemp.CacheStringProp(hvoLexRel, RelatedWordsVc.ktagName,
                                              (cdaTemp as ISilDataAccess).get_StringProp(hvoLexRel, RelatedWordsVc.ktagName));
                }
                m_hvoEntry = leui.Object.Hvo;
                SetupForEntry(domains, lexrels);
                m_view.SetEntry(m_hvoEntry);
            }
        }