//====== private methods private void PaintStatsWindow(TextCanvas canvas) { var statsView = canvas.Slice(canvas.Size.AsRectangle.ChangeWidth(30)); statsView.ClearColor(Color16.DarkBlue); var app = new WindowAppearance(Color16.Black, Color16.Teal, Color16.Lime, true); var statsWindow = new StatsWindow(playerName, gameLogic.GetStatus(), statsView.Size, app); statsWindow.Paint(statsView, Point.Zero); }