PowerArgs.Cli.Dialog.OnPaint C# (CSharp) Method

OnPaint() protected method

protected OnPaint ( ConsoleBitmap context ) : void
context ConsoleBitmap
return void
        protected override void OnPaint(ConsoleBitmap context)
        {
            context.Pen = new ConsoleCharacter(' ', null, myFocusStackDepth == Application.FocusManager.StackDepth ? Theme.DefaultTheme.H1Color : Theme.DefaultTheme.DisabledColor);
            context.DrawLine(0, 0, Width, 0);
            context.DrawLine(0, Height-1, Width, Height-1);
            base.OnPaint(context);
        }