Exemplo n.º 1
0
        private void Setup_StatusStrip(bool createControl)
        {
            if (IsNotSave())
            {
                return;
            }
            StatusStrip statusStrip;

            if (UIDesigner_Tools.Control_Setup1(_formHost, _formName, createControl, out statusStrip))
            {
                statusStrip.Dock = DockStyle.Bottom;
                statusStrip.SendToBack();
            }
        }
Exemplo n.º 2
0
        private void Setup_ToolStrip(bool createControl)
        {
            if (IsNotSave())
            {
                return;
            }
            ToolStrip toolStrip;

            if (UIDesigner_Tools.Control_Setup1 <ToolStrip>(_formHost, _formName, createControl, out toolStrip))
            {
                toolStrip.Dock = DockStyle.Top;
                toolStrip.SendToBack();
            }
        }
Exemplo n.º 3
0
        private void Setup_StandardButtons(bool createControl)
        {
            if (IsNotSave())
            {
                return;
            }
            Button_Standard button;

            if (UIDesigner_Tools.Control_Setup1(_formHost, _formName, createControl, out button))
            {
                button.Visible_Cancel = true;
                button.Dock           = DockStyle.Bottom;
            }
        }
Exemplo n.º 4
0
        private void Setup_ToolbarPanel(bool createControl)
        {
            if (IsNotSave())
            {
                return;
            }
            Panel panel;

            if (UIDesigner_Tools.Control_Setup1 <Panel>(_formHost, _formName, createControl, out panel, true, "Toolbar_Panel"))
            {
                // There will be more than one panel. Mark the Toolbar panel with "Toolbar_Panel" in the tag property
                panel.Height      = 32;
                panel.Tag         = "Toolbar_Panel";
                panel.Dock        = DockStyle.Top;
                panel.BorderStyle = BorderStyle.FixedSingle;
                panel.SendToBack();
            }
        }