Exemplo n.º 1
0
 public void Draw(FigureDrawer api)
 {
     api.DrawFigure(this);
 }
Exemplo n.º 2
0
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            var api = new FigureDrawer(e.Graphics);

            GameController.AllFigures.ForEach(f => f.Draw(api));
        }