コード例 #1
0
 public void Draw(FigureDrawer api)
 {
     api.DrawFigure(this);
 }
コード例 #2
0
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            var api = new FigureDrawer(e.Graphics);

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