/// <summary> /// Generates a header for a section of tool dialog. /// </summary> private void GenerateHeader(string sectionName, Control panel) { var section = new ConfigPanelControl { HeaderText = sectionName, Dock = DockStyle.Top }; section.ShowCaptionOnly(); panel.Controls.Add(section); }
/// <summary> /// Adds controls to command line page. /// </summary> private void PopulateCommandLinePage() { _cmdOptions = new StringParameterControl(true) { Caption = "Main options (read only)", Dock = DockStyle.Top, ReadOnly = true }; var section = new ConfigPanelControl { HeaderText = "Command line options", Dock = DockStyle.Top }; section.ShowCaptionOnly(); var panel = _tabCmdLine.GetPanel(); GenerateOptionsControl(); panel.Controls.Add(_cmdOptions); panel.Controls.Add(section); panel.AddVerticalPadding(); }