protected override void AddLines() { var pen = new Pen(Color.Red, 3); pen.CustomEndCap = new AdjustableArrowCap(4, 4); Shapes.AddRange(СonnectLines(pen, new [] { BeginEllipse.GetDown(), InitializationIndex.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { InitializationIndex.GetDown(), Cycle.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { Cycle.GetDown(), CycleBodySum.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { CycleBodySum.GetDown(), CycleBodyIndex.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { Cycle.GetRight(), new Point(Cycle.GetRight().X + 25, Cycle.GetRight().Y), new Point(Cycle.GetRight().X + 25, Result.GetUp().Y - 25), new Point(Result.GetUp().X, Result.GetUp().Y - 25), Result.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { CycleBodyIndex.GetDown(), new Point(CycleBodyIndex.GetDown().X, CycleBodyIndex.GetDown().Y + 25), new Point(Cycle.GetLeft().X - 25, CycleBodyIndex.GetDown().Y + 25), new Point(Cycle.GetLeft().X - 25, Cycle.GetLeft().Y), Cycle.GetLeft() })); Shapes.AddRange(СonnectLines(pen, new [] { Result.GetDown(), EndEllipse.GetUp() })); }
protected override void AddLines() { var pen = new Pen(Color.Red, 3); pen.CustomEndCap = new AdjustableArrowCap(4, 4); Shapes.AddRange(СonnectLines(pen, new [] { BeginEllipse.GetDown(), InitializationIndex.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { InitializationIndex.GetDown(), ShapeSum.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { ShapeSum.GetDown(), ShapeIndex.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { ShapeIndex.GetDown(), ShapeСondition.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { ShapeСondition.GetDown(), Result.GetUp() })); Shapes.AddRange(СonnectLines(pen, new [] { ShapeСondition.GetRight(), new Point(ShapeСondition.GetRight().X + 25, ShapeСondition.GetRight().Y), new Point(ShapeСondition.GetRight().X + 25, ShapeSum.GetRight().Y), ShapeSum.GetRight() })); Shapes.AddRange(СonnectLines(pen, new [] { Result.GetDown(), EndEllipse.GetUp() })); }