PowerArgs.Cli.CliProgressBar.DrawBorder C# (CSharp) Method

DrawBorder() private method

private DrawBorder ( ) : void
return void
        private void DrawBorder()
        {
            topLeft.Restore();
            DrawHorizontalLine();
            if(Width < Console.BufferWidth)
            {
                Console.WriteLine();
            }
            Console.Write(BorderPen);
            Console.Write(BorderPen);
            Console.CursorLeft += Width - 4;
            Console.Write(BorderPen);
            Console.Write(BorderPen);

            if (Width < Console.BufferWidth)
            {
                Console.WriteLine();
            }

            DrawHorizontalLine();
        }