Exemple #1
0
		void MakeInterlinPane()
		{
			if (m_idcPane != null)
				return;
			m_idcPane = new InterlinDocChild();
			m_idcPane.Name = "m_idcPane";
			m_idcPane.ForEditing = true;
			m_idcPane.Dock = DockStyle.Fill;
			m_idcPane.BackColor = Color.FromKnownColor(KnownColor.Window);
			this.SetStyleSheetFor(m_idcPane);
			// This isn't adequate now we're saving the active pane, this routine gets called before
			// we have our style sheet.
			//m_idcPane.StyleSheet = m_styleSheet;
			m_idcPane.AnnnotationSelected += new AnnotationSelectedEventHandler(
				m_idcPane_AnnnotationSelected);
			m_idcPane.Visible = false;
			m_panelInterlin.Controls.Add(m_idcPane);
			// If these don't happen now they will happen later in SetupDataContext.
			if (Cache != null)
				m_idcPane.Cache = Cache;
			if (m_mediator != null)
				m_idcPane.Init(m_mediator, m_configurationParameters);
		}