示例#1
0
 public ShapeCreator(ShapeSerializer shapeSerialize)
 {
     this.shapeSerialize = shapeSerialize;
 }
示例#2
0
        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));
        }
示例#3
0
 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));
 }