예제 #1
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));
        }
예제 #2
0
        private void DisplaySetup_Load(object sender, EventArgs e)
        {
            _setupElementsTree            = new SetupElementsTree(_elementTemplates, _elementSetupHelpers);
            _setupElementsTree.Dock       = DockStyle.Fill;
            _setupElementsTree.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;

            activateControllersControl(_setupControllersSimple);
            activateElementControl(_setupElementsTree);

            radioButtonPatchingSimple.Checked = true;
        }
예제 #3
0
        private void DisplaySetup_Load(object sender, EventArgs e)
        {
            _setupElementsTree            = new SetupElementsTree(_elementTemplates, _elementSetupHelpers);
            _setupElementsTree.Dock       = DockStyle.Fill;
            _setupElementsTree.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;

            activateControllersControl(_setupControllersSimple);
            activateElementControl(_setupElementsTree);

            radioButtonPatchingSimple.Checked = true;
            splitContainer1.SplitterDistance  = tableLayoutPanelElementSetup.Width + 6;
            splitContainer2.SplitterDistance  = (int)(tableLayoutPanelPatchingSetup.Width + (10 * ScalingTools.GetScaleFactor()));
        }
예제 #4
0
        private void DisplaySetup_Load(object sender, EventArgs e)
        {
            _setupElementsTree = new SetupElementsTree(_elementTemplates, _elementSetupHelpers);
            //_setupElementsTree.Dock = DockStyle.Fill;
            _setupElementsTree.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;

            activateControllersControl(_setupControllersSimple);
            activateElementControl(_setupElementsTree);

            radioButtonPatchingSimple.Checked = true;
            splitContainer1.SplitterDistance  = elementPanelFlowLayoutPanel.Width + 10;
            splitContainer2.SplitterDistance  = patchingPaneFlowLayoutPanel.Width + 6;
        }