/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ public CheckingErrorCommentDlg(CheckingError error, IVwStylesheet stylesheet) : this() { System.Diagnostics.Debug.Assert(error != null); m_text = new FwMultiParaTextBox(error.ResolutionOA, stylesheet); m_text.Dock = DockStyle.Fill; pnlTextBox.Controls.Add(m_text); m_error = error; }
/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// ------------------------------------------------------------------------------------ public CheckingErrorCommentDlg(CheckingError error, IVwStylesheet stylesheet, IHelpTopicProvider helpTopicHandler) : this() { System.Diagnostics.Debug.Assert(error != null); m_helpTopicProvider = helpTopicHandler; m_text = new FwMultiParaTextBox(error.MyNote.ResolutionOA, stylesheet); m_text.Dock = DockStyle.Fill; pnlTextBox.Controls.Add(m_text); m_error = error; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Makes the text box containing the specified text. /// </summary> /// <param name="text">The text.</param> /// ------------------------------------------------------------------------------------ private void MakeTextBox(IStText text) { if (m_resolutionText != null) { Controls.Remove(m_resolutionText); m_resolutionText.Dispose(); } Size = new Size(175, 1); m_resolutionText = new FwMultiParaTextBox(text, m_stylesheet); m_resolutionText.Dock = DockStyle.Fill; m_resolutionText.BackColor = SystemColors.Info; m_resolutionText.BorderStyle = BorderStyle.None; m_resolutionText.ReadOnly = true; m_resolutionText.AutoScroll = false; Controls.Add(m_resolutionText); }