protected override void OnPaint(ConsoleBitmap context)
{
foreach (var control in Controls)
{
Rectangle scope = context.GetScope();
try
{
context.Rescope(control.X, control.Y, control.Width, control.Height);
control.Paint(context);
}
finally
{
context.Scope(scope);
}
}
}