Canguro.Commands.Forms.SectionsGUI.UpdatePage5 C# (CSharp) Method

UpdatePage5() private method

private UpdatePage5 ( ) : void
return void
        private void UpdatePage5()
        {
            if (currentSection == null)
                wizardControl.SelectTab(0);
            else
            {
                areaTextBox.Text = currentSection.Area.ToString("G2");
                as22TextBox.Text = currentSection.As2.ToString("G2");
                as33TextBox.Text = currentSection.As3.ToString("G2");
                i22TextBox.Text = currentSection.I22.ToString("G2");
                i33TextBox.Text = currentSection.I33.ToString("G2");
                r22TextBox.Text = currentSection.R22.ToString("G2");
                r33TextBox.Text = currentSection.R33.ToString("G2");
                s22TextBox.Text = currentSection.S22.ToString("G2");
                s33TextBox.Text = currentSection.S33.ToString("G2");
                torsionalTextBox.Text = currentSection.TorsConst.ToString("G2");
                z22TextBox.Text = currentSection.Z22.ToString("G2");
                z33TextBox.Text = currentSection.Z33.ToString("G2");

                bool enable = currentSection is General;
                areaTextBox.Enabled = enable;
                as22TextBox.Enabled = enable;
                as33TextBox.Enabled = enable;
                i22TextBox.Enabled = enable;
                i33TextBox.Enabled = enable;
                r22TextBox.Enabled = enable;
                r33TextBox.Enabled = enable;
                s22TextBox.Enabled = enable;
                s33TextBox.Enabled = enable;
                torsionalTextBox.Enabled = enable;
                z22TextBox.Enabled = enable;
                z33TextBox.Enabled = enable;

                //propertyGrid.SelectedObject = currentSection;
                //propertyGrid.Width = enable;

                if (enable)
                {
                    applyButton.Visible = true;
                    startButton5.Text = Culture.Get("cancel");
                    AcceptButton = applyButton;
                }
                else
                {
                    applyButton.Visible = false;
                    startButton5.Text = Culture.Get("accept");
                    AcceptButton = startButton5;
                }
            }
        }