コード例 #1
0
		public override void FixtureSetup()
		{
			base.FixtureSetup();

			m_vc = new HFModifyDlgVC(new HFDialogsPageInfo(true), Cache.DefaultVernWs, DateTime.Now, Cache);
		}
コード例 #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Changes a header/footer panel to be a HFSetView with the correct info
		/// </summary>
		/// <param name="pan"></param>
		/// <param name="hvoToDisplay"></param>
		/// ------------------------------------------------------------------------------------
		private HFSetView ChangePanelToView(Panel pan, int hvoToDisplay)
		{
			HFDialogsPageInfo info = new HFDialogsPageInfo(m_pub.IsLeftBound);
			info.PageNumber = 1;
			HFModifyDlgVC vc = new HFModifyDlgVC(info,
				m_caches.MainCache.DefaultVernWs,
				DateTime.Now, m_caches.MainCache);
			HFSetView view = new HFSetView(m_caches.DataAccess, vc, hvoToDisplay);
			view.MakeRoot();
			view.Dock = DockStyle.Fill;
			view.LostFocus += new EventHandler(view_LostFocus);
			pan.Controls.Add(view);
			return view;
		}