Treefrog.Windows.Controls.Composite.TileToolbar.TileToolbar C# (CSharp) Method

TileToolbar() public method

public TileToolbar ( ) : System
return System
        public TileToolbar()
        {
            // Construction

            _tbSelect = CreateButton("Select Tool (C)", Properties.Resources.Cursor);
            _tbDraw = CreateButton("Draw Tool (D)", Properties.Resources.PaintBrush);
            _tbErase = CreateButton("Erase Tool (E)", Properties.Resources.Eraser);
            _tbFill = CreateButton("Fill Tool (F)", Properties.Resources.PaintCan);

            _tbFlipH = CreateButton("Flip Horizontally", Properties.Resources.LayerFlip);
            _tbFlipV = CreateButton("Flip Vertically", Properties.Resources.LayerFlipVertical);
            _tbRotateLeft = CreateButton("Rotate Left 90 Degrees", Properties.Resources.LayerRotateLeft);
            _tbRotateRight = CreateButton("Rotate Right 90 Degrees", Properties.Resources.LayerRotate);

            _strip = new ToolStrip();
            _strip.Items.AddRange(new ToolStripItem[] {
                _tbSelect, _tbDraw, _tbErase, _tbFill, new ToolStripSeparator(),
                _tbFlipH, _tbFlipV, _tbRotateLeft, _tbRotateRight
            });

            _tbSelect.Click += SelectButtonClickHandler;
            _tbDraw.Click += DrawButtonClickHandler;
            _tbErase.Click += EraseButtonClickHandler;
            _tbFill.Click += FillButtonClickHandler;

            _commandButtonMap = new Dictionary<CommandKey, ToolStripButton>() {
                { CommandKey.TileToolSelect, _tbSelect },
                { CommandKey.TileToolDraw, _tbDraw },
                { CommandKey.TileToolErase, _tbErase },
                { CommandKey.TileToolFill, _tbFill },
            };

            ResetComponent();
        }