SIL.FieldWorks.Common.RootSites.PrintRootSite.Advance C# (CSharp) Method

Advance() protected method

Call this method after each page is printed. This will cause the calculations to be made in order to return HasMorePages accurately.
protected Advance ( ) : void
return void
		protected void Advance()
		{
			if (!m_psettings.Collate)
			{
				AdvanceWhenNotCollating();
				return;
			}

			// Check if all the pages in the range have been printed.
			// .NET now handles multiple copies automatically when collation is on.
			// Therefore, we only need to print one copy.
			if (m_nextPageToPrint >= m_psettings.ToPage ||
				m_nextPageToPrint >= m_totalNumberOfPages)
			{
				m_morePagesToPrint = false;
			}
			else
			{
				m_nextPageToPrint++;
			}
		}