Esempio n. 1
0
		private void MakePrintViewPane()
		{
			if (m_printViewPane != null)
				return;
			m_printViewPane = new InterlinPrintChild();
			m_printViewPane.Name = "m_printViewPane";
			m_printViewPane.ForEditing = false;
			m_printViewPane.Dock = DockStyle.Fill;
			m_printViewPane.BackColor = Color.FromKnownColor(KnownColor.Window);
			this.SetStyleSheetFor(m_printViewPane);

			m_printViewPane.Visible = false;
			m_panelPrintView.Controls.Add(m_printViewPane);

			// If these don't happen now they will happen later in SetupDataContext.
			if (Cache != null)
				m_printViewPane.Cache = Cache;
			if (m_mediator != null)
				m_printViewPane.Init(m_mediator, m_configurationParameters);
		}