Beispiel #1
0
 public void DrawShape(IDrawble shape)
 {
     drawbles.Add(shape);
     foreach (IDrawble s in drawbles)
     {
         s.Draw();
     }
 }
Beispiel #2
0
            public void DrawShape(IDrawble shape)
            {
                shapes.Add(shape);

                foreach (IDrawble obj in shapes)
                {
                    obj.Draw();
                }
            }
Beispiel #3
0
 public DrawCommand(IDrawble drawble, Point position)
 {
     this.drawble  = drawble;
     this.position = position;
 }