예제 #1
0
		/// ------------------------------------------------------------------------------------
		/// <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);
		}
예제 #2
0
		/// <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);
		}
예제 #3
0
		private void LoadCases(WfiWordSet wordSet)
		{
			m_hvos = wordSet.CasesRC.HvoArray;
		}