Forex_Strategy_Builder.Dialogs.Generator.IndicatorsLayout.IndicatorsLayout C# (CSharp) Метод

IndicatorsLayout() публичный Метод

Constructor
public IndicatorsLayout ( ) : System
Результат System
        public IndicatorsLayout()
        {
            tsIndLayout = new ToolStrip();
            layoutBase = new Panel();
            flowLayoutIndicators = new FlowLayoutPanel();
            vScrollBar = new VScrollBar();
            cbxIndicatorSlot = new ToolStripComboBox();

            tsIndLayout.CanOverflow = false;

            cbxIndicatorSlot.DropDownStyle = ComboBoxStyle.DropDownList;
            cbxIndicatorSlot.AutoSize = false;
            cbxIndicatorSlot.Items.AddRange(new string[] {
                Language.T("Opening Point of the Position"),
                Language.T("Opening Logic Condition"),
                Language.T("Closing Point of the Position"),
                Language.T("Closing Logic Condition")
            });
            cbxIndicatorSlot.SelectedIndex = 0;
            cbxIndicatorSlot.SelectedIndexChanged += new EventHandler(CbxIndicatorSlot_SelectedIndexChanged);

            tsbtnSelectAll = new ToolStripButton();
            tsbtnSelectAll.Name = "tsbtnSelectAll";
            tsbtnSelectAll.Click       += new EventHandler(Buttons_Click);
            tsbtnSelectAll.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbtnSelectAll.Image        = Properties.Resources.optimizer_select_all;
            tsbtnSelectAll.ToolTipText  = Language.T("Allow all indicators.");
            tsbtnSelectAll.Alignment    = ToolStripItemAlignment.Right;

            tsbtnSelectNone = new ToolStripButton();
            tsbtnSelectNone.Name         = "tsbtnSelectNone";
            tsbtnSelectNone.Click       += new EventHandler(Buttons_Click);
            tsbtnSelectNone.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbtnSelectNone.Image        = Properties.Resources.optimizer_select_none;
            tsbtnSelectNone.ToolTipText  = Language.T("Bann all indicators.");
            tsbtnSelectNone.Alignment    = ToolStripItemAlignment.Right;

            tsbtnStatus = new ToolStripButton();
            tsbtnStatus.Name      = "tsbtnStatus";
            tsbtnStatus.Text      = Language.T("banned");
            tsbtnStatus.Click    += new EventHandler(Buttons_Click);
            tsbtnStatus.Alignment = ToolStripItemAlignment.Right;

            tsIndLayout.Items.Add(cbxIndicatorSlot);
            tsIndLayout.Items.Add(tsbtnStatus);
            tsIndLayout.Items.Add(tsbtnSelectNone);
            tsIndLayout.Items.Add(tsbtnSelectAll);

            // Layout base
            layoutBase.Parent = this;
            layoutBase.Dock      = DockStyle.Fill;
            layoutBase.BackColor = LayoutColors.ColorControlBack;

            // Tool Strip Strategy
            tsIndLayout.Parent = this;
            tsIndLayout.Dock   = DockStyle.Top;

            // flowLayoutIndicators
            flowLayoutIndicators.Parent = layoutBase;
            flowLayoutIndicators.AutoScroll    = false;
            flowLayoutIndicators.AutoSize      = true;
            flowLayoutIndicators.FlowDirection = FlowDirection.TopDown;
            flowLayoutIndicators.BackColor     = LayoutColors.ColorControlBack;

            // VScrollBarStrategy
            vScrollBar.Parent  = layoutBase;
            vScrollBar.TabStop = true;
            vScrollBar.Scroll += new ScrollEventHandler(VScrollBar_Scroll);

            InitBannedIndicators();
            SetStatusButton();
            ArrangeIndicatorsSlots();
            vScrollBar.Select();
        }