Bloom.Workspace.WorkspaceView.ShrinkToStage2 C# (CSharp) Method

ShrinkToStage2() private method

private ShrinkToStage2 ( ) : void
return void
        private void ShrinkToStage2()
        {
            // before this we want to change button sizes and icons on the 4 items
            RemoveButtonTexts();
            _settingsButton.Image = Resources.settingsbw16x16;
            _openCreateCollectionButton.Image = Resources.OpenCreateLibrary16x16;
            _helpMenu.Image = Resources.help16x16;
            var uiMenuHeight = _uiLanguageMenu.Size.Height;
            _uiLanguageMenu.Width = uiMenuHeight; // make it a small square (hopefully just show the dropdown arrow?)
            var panelLocation = _panelHoldingToolStrip.Location;
            _stage2SpaceSaved = _originalToolStripPanelWidth - PANEL_TOOLSTRIP_SMALLWIDTH;
            _panelHoldingToolStrip.Width = PANEL_TOOLSTRIP_SMALLWIDTH;
            _panelHoldingToolStrip.Height -= PANEL_VERTICAL_SPACER;
            // move the whole panel to the right edge
            _panelHoldingToolStrip.Location =
                new Point(panelLocation.X + _stage2SpaceSaved, panelLocation.Y + PANEL_VERTICAL_SPACER);
            // otherwise as we keep shrinking the right side of the tool specific panel blanks us out
            _panelHoldingToolStrip.BringToFront();
        }