Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 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;
 }
Esempio n. 6
0
        public MainWindow()
        {
            InitializeComponent();
            this.DataContext = dataContainer;

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

            composite = new ShapeComposite();
        }