Example #1
0
    // Draw all the shapes on the provided graphics object
    private void drawShapes(IGraphics graphics)
    {
        graphics.Begin();

        foreach (Shape shape in shapes)
        {
            shape.setGraphics(graphics);
            shape.Draw();
        }

        graphics.End();
    }