AGS.Editor.WelcomePane.WelcomePane_Resize C# (CSharp) Метод

WelcomePane_Resize() приватный Метод

private WelcomePane_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void WelcomePane_Resize(object sender, EventArgs e)
        {
            int newWidth = this.ClientRectangle.Width - pnlRight.Left;
            if (newWidth < 25) newWidth = 25;
            pnlRight.Width = newWidth - 10;
            lblUpgradingInfo.MaximumSize = new Size(pnlRight.ClientRectangle.Width - lblUpgradingInfo.Left - 10, 0);
            lnkUpgrading.MaximumSize = new Size(pnlRight.ClientRectangle.Width - lnkUpgrading.Left - 10, 0);
            lnkUpgrading.Top = lblUpgradingInfo.Bottom + 10;
            lblUpgradingInfo3.MaximumSize = new Size(pnlRight.ClientRectangle.Width - lblUpgradingInfo3.Left - 10, 0);
            lblUpgradingInfo3.Top = lnkUpgrading.Bottom + 10;
            pnlRight.Height = lblUpgradingInfo3.Bottom + 10;
        }