Forex_Strategy_Builder.Dialogs.Generator.Generator.SetButtonsStrategy C# (CSharp) Method

SetButtonsStrategy() private method

Sets tool strip buttons
private SetButtonsStrategy ( ) : void
return void
        void SetButtonsStrategy()
        {
            tsbtLockAll = new ToolStripButton();
            tsbtLockAll.Name = "tsbtLockAll";
            tsbtLockAll.Image = Properties.Resources.padlock_img;
            tsbtLockAll.Click += new EventHandler(ChangeSlotStatus);
            tsbtLockAll.ToolTipText = Language.T("Lock all slots.");
            tsStrategy.Items.Add(tsbtLockAll);

            tsbtUnlockAll = new ToolStripButton();
            tsbtUnlockAll.Name = "tsbtUnlockAll";
            tsbtUnlockAll.Image = Properties.Resources.open_padlock_img;
            tsbtUnlockAll.Click += new EventHandler(ChangeSlotStatus);
            tsbtUnlockAll.ToolTipText = Language.T("Unlock all slots.");
            tsStrategy.Items.Add(tsbtUnlockAll);

            tsbtLinkAll = new ToolStripButton();
            tsbtLinkAll.Name = "tsbtLinkAll";
            tsbtLinkAll.Image = Properties.Resources.linked;
            tsbtLinkAll.Click += new EventHandler(ChangeSlotStatus);
            tsbtLinkAll.ToolTipText = Language.T("Link all slots.");
            tsStrategy.Items.Add(tsbtLinkAll);

            tsStrategy.Items.Add(new ToolStripSeparator());

            // Button Overview
            tsbtOverview = new ToolStripButton();
            tsbtOverview.Name = "Overview";
            tsbtOverview.Text = Language.T("Overview");
            tsbtOverview.Click += new EventHandler(Show_Overview);
            tsbtOverview.ToolTipText = Language.T("See the strategy overview.");
            tsStrategy.Items.Add(tsbtOverview);

            // Button tsbtStrategySize1
            tsbtStrategySize1 = new ToolStripButton();
            tsbtStrategySize1.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbtStrategySize1.Image = Properties.Resources.slot_size_max;
            tsbtStrategySize1.Tag = 1;
            tsbtStrategySize1.Click += new EventHandler(BtnSlotSize_Click);
            tsbtStrategySize1.ToolTipText = Language.T("Show detailed info in the slots.");
            tsbtStrategySize1.Alignment = ToolStripItemAlignment.Right;
            tsStrategy.Items.Add(tsbtStrategySize1);

            // Button tsbtStrategySize2
            tsbtStrategySize2 = new ToolStripButton();
            tsbtStrategySize2.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbtStrategySize2.Image = Properties.Resources.slot_size_min;
            tsbtStrategySize2.Tag = 2;
            tsbtStrategySize2.Click += new EventHandler(BtnSlotSize_Click);
            tsbtStrategySize2.ToolTipText = Language.T("Show minimum info in the slots.");
            tsbtStrategySize2.Alignment = ToolStripItemAlignment.Right;
            tsStrategy.Items.Add(tsbtStrategySize2);

            // Button tsbtStrategyInfo
            tsbtStrategyInfo = new ToolStripButton();
            tsbtStrategyInfo.DisplayStyle = ToolStripItemDisplayStyle.Image;
            tsbtStrategyInfo.Image = Properties.Resources.str_info_infook;
            tsbtStrategyInfo.Click += new EventHandler(BtnStrategyDescription_Click);
            tsbtStrategyInfo.ToolTipText = Language.T("Show the strategy description.");
            tsbtStrategyInfo.Alignment = ToolStripItemAlignment.Right;
            tsStrategy.Items.Add(tsbtStrategyInfo);
        }