Пример #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlTerm"/> class based on the given
 /// collection of Scripture notes.
 /// </summary>
 /// <param name="term">The key term.</param>
 /// ------------------------------------------------------------------------------------
 public XmlTerm(IChkTerm term)
 {
     m_term    = term;
     TermIdNum = term.TermId;
     KeyWord   = new XmlKeyWord(term);
     foreach (IChkRef occurrence in term.OccurrencesOS.Where(o =>
                                                             o.Status != KeyTermRenderingStatus.AutoAssigned && o.Status != KeyTermRenderingStatus.Unassigned))
     {
         Renderings.Add(new XmlTermRendering(occurrence));
     }
     Debug.Assert(Renderings.Count > 0);
 }
Пример #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="XmlTerm"/> class based on the given
		/// collection of Scripture notes.
		/// </summary>
		/// <param name="term">The key term.</param>
		/// ------------------------------------------------------------------------------------
		public XmlTerm(IChkTerm term)
		{
			m_term = term;
			TermIdNum = term.TermId;
			KeyWord = new XmlKeyWord(term);
			foreach (IChkRef occurrence in term.OccurrencesOS.Where(o =>
				o.Status != KeyTermRenderingStatus.AutoAssigned && o.Status != KeyTermRenderingStatus.Unassigned))
			{
				Renderings.Add(new XmlTermRendering(occurrence));
			}
			Debug.Assert(Renderings.Count > 0);
		}