static void Main(string[] args) { GraphicEditor graphicEditor = new GraphicEditor(); graphicEditor.DrawShape(new Circle()); graphicEditor.DrawShape(new Square()); graphicEditor.DrawShape(new Rectangle()); }
public static void Main() { var circle = new Circle(); var square = new Square(); var editor = new GraphicEditor(); editor.DrawShape(circle); editor.DrawShape(square); }
public static void Main() { IShape circle = new Circle(); IShape square = new Square(); IShape rectangle = new Rectangle(); GraphicEditor editor = new GraphicEditor(); editor.DrawShape(circle); editor.DrawShape(square); editor.DrawShape(rectangle); }
static void Main() { var circle = new Circle(); var rectangle = new Rectangle(); var square = new Square(); var graphicEditor = new GraphicEditor(); graphicEditor.DrawShape(circle); graphicEditor.DrawShape(rectangle); graphicEditor.DrawShape(square); }
private static void Main() { GraphicEditor graphicEditor = new GraphicEditor(); Circle circle = new Circle("Circle"); Rectangle rectangle = new Rectangle("Rectangle"); Square square = new Square("Square"); graphicEditor.DrawShape(circle); graphicEditor.DrawShape(rectangle); graphicEditor.DrawShape(square); }
public static void Main() { IShape circle = new Circle(); IShape rectangle = new Rectangle(); IShape square = new Square(); IShape triangle = new Triangle(); var ge = new GraphicEditor(); ge.DrawShape(circle); ge.DrawShape(rectangle); ge.DrawShape(square); ge.DrawShape(triangle); }
public static void Main() { Circle circle = new Circle(); Rectangle rectangle = new Rectangle(); Square square = new Square(); Triangle triangle = new Triangle(); GraphicEditor graphicEditor = new GraphicEditor(); graphicEditor.DrawShape(circle); graphicEditor.DrawShape(rectangle); graphicEditor.DrawShape(square); graphicEditor.DrawShape(triangle); }
public static void Main() { IShape sq = new Square(); GraphicEditor gr = new GraphicEditor(); gr.DrawShape(sq); }
public static void Main() { Cube cube = new Cube(); GraphicEditor editor = new GraphicEditor(); editor.DrawShape(cube); }
public static void Main() { Rectangle rec = new Rectangle(); GraphicEditor gr = new GraphicEditor(); gr.DrawShape(rec); }
public static void Main() { IShape circle = new Circle(); GraphicEditor editor = new GraphicEditor(); editor.DrawShape(circle); }
public static void Main() { IShape rectangle = new Rectangle(); GraphicEditor grEditor = new GraphicEditor(); grEditor.DrawShape(rectangle); }
static void Main(string[] args) { IShape shape = new Rectangle(); GraphicEditor ge = new GraphicEditor(); ge.DrawShape(shape); }
public static void Main(string[] args) { IShape rectangle = new Rectangle(); GraphicEditor myGraphEditor = new GraphicEditor(); myGraphEditor.DrawShape(rectangle); }
static void Main() { IShape circle = new Circle(); IShape square = new Square(); IShape rexctanle = new Rectangle(); var graphEditor = new GraphicEditor(square); graphEditor.DrawShape(); }
public static void Main() { var shapes = new IShape[] { new Circle(), new Rectangle(), new Square(), }; var graphicEditor = new GraphicEditor(); foreach (var shape in shapes) { graphicEditor.DrawShape(shape); } }
static void Main() { GraphicEditor gE = new GraphicEditor(); gE.DrawShape(new Circle(), "circle"); }
public static void Main() { var ge = new GraphicEditor(); ge.DrawShape(new Circle()); }