public void Draw(FigureDrawer api) { api.DrawFigure(this); }
private void Form1_Paint(object sender, PaintEventArgs e) { var api = new FigureDrawer(e.Graphics); GameController.AllFigures.ForEach(f => f.Draw(api)); }