Пример #1
0
 public MoveArrow(ArrowInfo arrow, int oldX, int oldY, int newX, int newY)
 {
     Arrow = arrow;
     OldX  = oldX;
     OldY  = oldY;
     NewX  = newX;
     NewY  = newY;
 }
Пример #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;
 }
Пример #3
0
 public RotateArrow(ArrowInfo arrow, bool clockwise)
 {
     Arrow     = arrow;
     Clockwise = clockwise;
 }
Пример #4
0
 public ToggleMark(ArrowInfo arrow)
 {
     Arrow = arrow;
 }
Пример #5
0
 public ArrowAnnotation(ArrowInfo arrow, string oldAnnotation, string newAnnotation)
 {
     Arrow         = arrow;
     OldAnnotation = oldAnnotation;
     NewAnnotation = newAnnotation;
 }