CSKernelClient.fMsg.fMsg_Load C# (CSharp) Метод

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

private fMsg_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void fMsg_Load(object sender, EventArgs e)
        {
            txMsg.SelectionStart = 0;
            txMsg.SelectionLength = 0;

            var height = txMsg.Lines.Length * 20;
            if (height > this.Height - 100)
            {
                this.Height = height + 100;
                txMsg.Height = height;
                cmdOk.Top = this.Height - 80;
            }            

            cWindow.centerForm(this);
        }
    }