/// --------------------------------------------------------------------------------
        /// <summary>
        /// Calls FirstVerseForStText in the book merger.
        /// </summary>
        /// <param name="text">IStText from which we want to get the first verse.</param>
        /// --------------------------------------------------------------------------------
        public ScrVerse CallFirstVerseForStText(IStText text)
        {
            ScrVerse prevVerse = null;

            using (VerseIteratorForStText iterator = new VerseIteratorForStText(text))
                return(FirstVerseForStText(iterator, ref prevVerse));
        }
 /// --------------------------------------------------------------------------------
 /// <summary>
 /// Create an instance of the Book Merger's VerseIterator class, for testing.
 /// </summary>
 /// <param name="txt">the given IStText to create an iterator for</param>
 /// --------------------------------------------------------------------------------
 public void CreateVerseIteratorForStText(IStText txt)
 {
     if (m_VerseIteratorForStText != null)
     {
         m_VerseIteratorForStText.Dispose();
     }
     m_VerseIteratorForStText = new VerseIteratorForStText(txt);
 }
示例#3
0
		/// <summary/>
		protected override void Dispose(bool fDisposing)
		{
			if (fDisposing)
			{
				if (m_VerseIteratorForSetOfStTexts != null)
					m_VerseIteratorForSetOfStTexts.Dispose();
				if (m_VerseIteratorForStText != null)
					m_VerseIteratorForStText.Dispose();
			}
			m_VerseIteratorForSetOfStTexts = null;
			m_VerseIteratorForStText = null;
			base.Dispose(fDisposing);
		}
 /// <summary/>
 protected override void Dispose(bool fDisposing)
 {
     if (fDisposing)
     {
         if (m_VerseIteratorForSetOfStTexts != null)
         {
             m_VerseIteratorForSetOfStTexts.Dispose();
         }
         if (m_VerseIteratorForStText != null)
         {
             m_VerseIteratorForStText.Dispose();
         }
     }
     m_VerseIteratorForSetOfStTexts = null;
     m_VerseIteratorForStText       = null;
     base.Dispose(fDisposing);
 }
示例#5
0
		/// --------------------------------------------------------------------------------
		/// <summary>
		/// Calls FirstVerseForStText in the book merger.
		/// </summary>
		/// <param name="text">IStText from which we want to get the first verse.</param>
		/// --------------------------------------------------------------------------------
		public ScrVerse CallFirstVerseForStText(IStText text)
		{
			ScrVerse prevVerse = null;
			using (VerseIteratorForStText iterator = new VerseIteratorForStText(text))
				return FirstVerseForStText(iterator, ref prevVerse);
		}
示例#6
0
		/// --------------------------------------------------------------------------------
		/// <summary>
		/// Create an instance of the Book Merger's VerseIterator class, for testing.
		/// </summary>
		/// <param name="txt">the given IStText to create an iterator for</param>
		/// --------------------------------------------------------------------------------
		public void CreateVerseIteratorForStText(IStText txt)
		{
			if (m_VerseIteratorForStText != null)
				m_VerseIteratorForStText.Dispose();
			m_VerseIteratorForStText = new VerseIteratorForStText(txt);
		}
示例#7
0
		/// --------------------------------------------------------------------------------
		/// <summary>
		/// Create an instance of the Book Merger's VerseIterator class, for testing.
		/// </summary>
		/// <param name="txt">the given StText to create an iterator for</param>
		/// --------------------------------------------------------------------------------
		public void CreateVerseIteratorForStText(IStText txt)
		{
			CheckDisposed();

			m_VerseIteratorForStText = new VerseIteratorForStText(txt);
		}