예제 #1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Creates a header/footer set view for the given information.
		/// </summary>
		/// <param name="pnl"></param>
		/// <param name="toDisplay"></param>
		/// <param name="pageNum"></param>
		/// ------------------------------------------------------------------------------------
		private HFSetView MakeHFSetView(Panel pnl, IPubHeader toDisplay, int pageNum)
		{
			HFDialogsPageInfo info = new HFDialogsPageInfo(m_pub.IsLeftBound);
			info.PageNumber = pageNum;
			HFSetupDlgVC vc = new HFSetupDlgVC(info,
				m_cache.DefaultVernWs, DateTime.Now, m_cache);
			HFSetView view = new HFSetView(m_cache.DomainDataByFlid, vc, toDisplay.Hvo);
			view.Dock = DockStyle.Fill;
			pnl.Controls.Add(view);
			return view;
		}