public ShapeCreator(ShapeSerializer shapeSerialize) { this.shapeSerialize = shapeSerialize; }
public RectangleCreator(int id, int defaultLength, int defaultHeight, Brush stroke, double strokeThickness, Brush fill, LineHit lineHit, ShapeSerializer shapeSerializer) : base(shapeSerializer) { this.id = id; this.defaultLength = defaultLength; this.defaultHeight = defaultHeight; this.stroke = stroke; this.strokeThickness = strokeThickness; this.fill = fill; this.lineHit = lineHit; exampleFactory = new Lazy <RectangleObject>(() => new RectangleObject(id, new Point(0, 0), new Point(0, 0), Brushes.Transparent, 0, Brushes.Transparent, lineHit)); }
public PolyLineCreator(int id, int defaultLength, Brush stroke, double strokeThickness, LineHit lineHit, ShapeSerializer shapeSerializer) : base(shapeSerializer) { this.id = id; this.defaultLength = defaultLength; this.stroke = stroke; this.strokeThickness = strokeThickness; this.lineHit = lineHit; exampleFactory = new Lazy <PolyLineObject>(() => new PolyLineObject(id, new Point(0, 0), new Point(0, 0), Brushes.Transparent, 0, lineHit)); }