Inheritance: System.Windows.Forms.UserControl, ISetupElementsControl
示例#1
0
        private void DisplaySetup_Load(object sender, EventArgs e)
        {
            _setupElementsTree = new SetupElementsTree(_elementTemplates, _elementSetupHelpers);
            _setupElementsTree.Dock = DockStyle.Fill;
            _setupElementsTree.MasterForm = this;
            _setupElementsPreview = new SetupElementsPreview();
            _setupElementsPreview.Dock = DockStyle.Fill;
            _setupElementsPreview.MasterForm = this;

            _setupPatchingSimple = new SetupPatchingSimple();
            _setupPatchingSimple.Dock = DockStyle.Fill;
            _setupPatchingSimple.MasterForm = this;
            _setupPatchingGraphical = new SetupPatchingGraphical();
            _setupPatchingGraphical.Dock = DockStyle.Fill;
            _setupPatchingGraphical.MasterForm = this;

            _setupControllersSimple = new SetupControllersSimple();
            _setupControllersSimple.Dock = DockStyle.Fill;
            _setupControllersSimple.MasterForm = this;

            radioButtonElementTree.Checked = true;
            radioButtonPatchingSimple.Checked = true;
            radioButtonControllersStandard.Checked = true;
        }
示例#2
0
        private void DisplaySetup_Load(object sender, EventArgs e)
        {
            _setupElementsTree = new SetupElementsTree(_elementTemplates, _elementSetupHelpers);
            _setupElementsTree.Dock = DockStyle.Fill;
            _setupElementsPreview = new SetupElementsPreview();
            _setupElementsPreview.Dock = DockStyle.Fill;

            _setupPatchingSimple = new SetupPatchingSimple();
            _setupPatchingSimple.Dock = DockStyle.Fill;
            _setupPatchingGraphical = new SetupPatchingGraphical();
            _setupPatchingGraphical.Dock = DockStyle.Fill;

            _setupControllersSimple = new SetupControllersSimple();
            _setupControllersSimple.Dock = DockStyle.Fill;

            radioButtonElementTree.Checked = true;
            radioButtonPatchingSimple.Checked = true;
            radioButtonControllersStandard.Checked = true;

            buttonHelp.Image = new Bitmap(Common.Resources.Properties.Resources.help, new Size(16, 16));
        }