Ejemplo n.º 1
0
 public MoveArrow(ArrowInfo arrow, int oldX, int oldY, int newX, int newY)
 {
     Arrow = arrow;
     OldX  = oldX;
     OldY  = oldY;
     NewX  = newX;
     NewY  = newY;
 }
Ejemplo n.º 2
0
 public ConvertArrow(ArrowInfo arrow, Cloud parentCloud)
 {
     OldArrow = arrow;
     NewArrow =
         arrow is SingleArrowInfo sai ? new DoubleArrowInfo {
         X = sai.X, Y = sai.Y, Annotation = sai.Annotation, Direction = (DoubleDirection)((int)sai.Direction % 4), Marked = sai.Marked
     } :
     arrow is DoubleArrowInfo dai ? (ArrowInfo) new SingleArrowInfo {
         X = dai.X, Y = dai.Y, Annotation = dai.Annotation, Direction = (Direction)(int)dai.Direction, Marked = dai.Marked
     } : null;
     ParentCloud = parentCloud;
 }
Ejemplo n.º 3
0
 public RotateArrow(ArrowInfo arrow, bool clockwise)
 {
     Arrow     = arrow;
     Clockwise = clockwise;
 }
Ejemplo n.º 4
0
 public ToggleMark(ArrowInfo arrow)
 {
     Arrow = arrow;
 }
Ejemplo n.º 5
0
 public ArrowAnnotation(ArrowInfo arrow, string oldAnnotation, string newAnnotation)
 {
     Arrow         = arrow;
     OldAnnotation = oldAnnotation;
     NewAnnotation = newAnnotation;
 }