Esempio n. 1
0
        public void TestGetStrForPageNumGuid()
        {
            m_vc.SetDa(m_fdoCache.MainCacheAccessor);
            string sPageNumGuid = MiscUtils.GetObjDataFromGuid(HeaderFooterVc.PageNumberGuid);

            m_pageInfo.m_pageNumber = 1;
            Assert.AreEqual("1", m_vc.GetStrForGuid(sPageNumGuid).Text);
            m_pageInfo.m_pageNumber = 642;
            Assert.AreEqual("642", m_vc.GetStrForGuid(sPageNumGuid).Text);
        }
		/// -------------------------------------------------------------------------------------
		/// <summary>
		/// Creates and returns the footer view construtor for the layout.
		/// </summary>
		/// <param name="page">Page info</param>
		/// <returns>the footer view construtor</returns>
		/// -------------------------------------------------------------------------------------
		public virtual IVwViewConstructor MakeFooterVc(IPageInfo page)
		{
			// TODO: Supply params to configure footer based on the header/footer set being used.
			HeaderFooterVc vc = new HeaderFooterVc(page, m_wsDefault, m_printDateTime, m_fdoCache);
			vc.SetDa(m_fdoCache.MainCacheAccessor);
			return vc;
		}
Esempio n. 3
0
        /// -------------------------------------------------------------------------------------
        /// <summary>
        /// Creates and returns the footer view construtor for the layout.
        /// </summary>
        /// <param name="page">Page info</param>
        /// <returns>the footer view construtor</returns>
        /// -------------------------------------------------------------------------------------
        public virtual IVwViewConstructor MakeFooterVc(IPageInfo page)
        {
            // TODO: Supply params to configure footer based on the header/footer set being used.
            HeaderFooterVc vc = new HeaderFooterVc(page, m_wsDefault, m_printDateTime, m_fdoCache);

            vc.SetDa(m_fdoCache.MainCacheAccessor);
            return(vc);
        }