/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="T:WordSetFilter"/> class. /// </summary> /// <param name="wordSet">The word set.</param> /// ------------------------------------------------------------------------------------ public WordSetFilter(WfiWordSet wordSet) { // m_wordSet = wordSet; // m_cases = m_wordSet.CasesRC; this.m_id = wordSet.Hvo.ToString(); m_name = wordSet.Name.AnalysisDefaultWritingSystem; LoadCases(wordSet); }
/// <summary> /// Sync the word references to the state of the word list in the database. /// This is what we need to do when restoring our Filter from xml to make sure /// the ids are valid. /// </summary> /// <param name="cache"></param> internal void ReloadWordSet(FdoCache cache) { int hvo = Int32.Parse(m_id); WfiWordSet wordSet = new WfiWordSet(cache, hvo); LoadCases(wordSet); }
private void LoadCases(WfiWordSet wordSet) { m_hvos = wordSet.CasesRC.HvoArray; }