Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Generates control for creation options exposed by selected GDAL driver.
        /// </summary>
        private void GenerateDriverOptions(DatasourceDriver driver, TabPageAdv tab)
        {
            var panel = tab.GetPanel();

            panel.Controls.Clear();

            _driverOptions = driver.GenerateCreationOptions().ToList();

            driver.RestoreConfig(DriverParameters);

            GenerateDriverControls(panel, driver);

            tab.TabVisible = panel.Controls.Count > 0;

            superToolTip1.AddTooltips(_driverOptions);
        }