public void DrawShape(IDrawble shape) { drawbles.Add(shape); foreach (IDrawble s in drawbles) { s.Draw(); } }
public void DrawShape(IDrawble shape) { shapes.Add(shape); foreach (IDrawble obj in shapes) { obj.Draw(); } }
public DrawCommand(IDrawble drawble, Point position) { this.drawble = drawble; this.position = position; }