public CommandCreatePencil(Point start, Point end, int newShapeIndex, CanvasShapeContainer shapeContainer, Brush brush)
 {
     this.start = start;
     this.end = end;
     this.newShapeIndex = newShapeIndex;
     this.shapeContainer = shapeContainer;
     this.brush = brush;
 }
 public CommandFinalizeRect(double posX, double posY, int newShapeIndex, CanvasShapeContainer shapeContainer, Brush brush)
 {
     this.posX = posX;
     this.posY = posY;
     this.newShapeIndex = newShapeIndex;
     this.shapeContainer = shapeContainer;
     this.brush = brush;
 }
 public CommandFinalizeMarker(Point start, Point end, int newShapeIndex, CanvasShapeContainer shapeContainer, Brush brush)
 {
     this.start = start;
     this.end = end;
     this.newShapeIndex = newShapeIndex;
     this.shapeContainer = shapeContainer;
     this.brush = brush;
 }
 public CommandSetSizeEllipse(double posX, double posY, int newShapeIndex, CanvasShapeContainer shapeContainer, Brush brush)
 {
     this.posX = posX;
     this.posY = posY;
     this.newShapeIndex = newShapeIndex;
     this.shapeContainer = shapeContainer;
     this.brush = brush;
 }
Exemple #5
0
 public CommandResizeRect(double dX, double dY, int newShapeIndex, CanvasShapeContainer shapeContainer, Path HitResult, Brush brush)
 {
     this.dX = dX;
     this.dY = dY;
     this.newShapeIndex = newShapeIndex;
     this.shapeContainer = shapeContainer;
     this.HitResult = HitResult;
     this.brush = brush;
 }
Exemple #6
0
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = dataContainer;

            shapeContainer = new CanvasShapeContainer();
            transform = new MatrixTransform();
            tempForm = new Path();
            newShapeIndex = 0;

            composite = new ShapeComposite();
        }