PowerArgs.Cli.GridPage.HandleResize C# (CSharp) Method

HandleResize() private method

private HandleResize ( ) : void
return void
        private void HandleResize()
        {
            Grid.Width = this.Width;

            if (CommandBar.Controls.Count == 0)
            {
                Grid.Y = 2;
                FilterTextBox.Y = 1;
                filterLabel.Y = 1;
                Grid.Height = this.Height - 2;
            }
            else
            {
                Grid.Y = 3;
                FilterTextBox.Y = 2;
                filterLabel.Y = 2;
                Grid.Height = this.Height - 3;
            }
            FilterTextBox.Width = this.Width;
            CommandBar.Width = this.Width;
        }