SphereStudio.Plugins.WindowstyleEditView.ZoomOutItem_Click C# (CSharp) Method

ZoomOutItem_Click() private method

private ZoomOutItem_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void ZoomOutItem_Click(object sender, EventArgs e)
        {
            ZoomInItem.Enabled = ZoomInButton.Enabled = true;
            if (_style.Zoom > 1)
            {
                _style.Zoom--;
                if (_style.Zoom == 1) ZoomOutItem.Enabled = ZoomOutButton.Enabled = false;
            }
            WindowPanel.Width = _windW * _style.Zoom;
            WindowPanel.Height = _windH * _style.Zoom;
            ZoomLabel.Text = $"Zoom: {_style.Zoom}";
            CenterInContainer();
            WindowPanel.Refresh();
        }