Пример #1
0
        public OptionsForm(string [] viewArray)
        {
            InitializeComponent();

            this.Text = String.Format("{0} Options", AssemblyTitle);

            generalOptions = new OptionsGeneralControl(viewArray);
            generalOptions.Dock = DockStyle.Fill;
            generalOptions.Visible = true;

            loggingOptions = new OptionsLoggingControl();
            loggingOptions.Dock = DockStyle.Fill;
            loggingOptions.Visible = false;

            this.optionsToolStripContainer.ContentPanel.Controls.AddRange( new Control[] {generalOptions, loggingOptions});
            // select the general options tab
            generalToolStripButton.PerformClick();
        }
Пример #2
0
        public OptionsForm(string [] viewArray)
        {
            InitializeComponent();

            this.Text = String.Format("{0} Options", AssemblyTitle);

            generalOptions         = new OptionsGeneralControl(viewArray);
            generalOptions.Dock    = DockStyle.Fill;
            generalOptions.Visible = true;


            loggingOptions         = new OptionsLoggingControl();
            loggingOptions.Dock    = DockStyle.Fill;
            loggingOptions.Visible = false;

            this.optionsToolStripContainer.ContentPanel.Controls.AddRange(new Control[] { generalOptions, loggingOptions });
            // select the general options tab
            generalToolStripButton.PerformClick();
        }