cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (38)
64return (this.BeingEdited && this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint
73return (this.BeingEdited && this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint
142if (this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
177void AddEditPoints(EditPoint.EditPointTypes editPointType)
179if (editPointType == EditPoint.EditPointTypes.ConnectionEditPoint)
183this.editPoints.Insert(0, new EditPoint(EditPoint.EditPointTypes.ConnectionEditPoint, editedConnector.Points[0]));
188editPoints.Add(new EditPoint(EditPoint.EditPointTypes.ConnectionEditPoint, editedConnector.Points[editedConnector.Points.Count - 1]));
191else if (editPointType == EditPoint.EditPointTypes.MultiSegmentEditPoint)
204this.editPoints.Insert(this.editPoints.Count - 1, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, segments[i]));
218AddEditPoints(EditPoint.EditPointTypes.ConnectionEditPoint);
219AddEditPoints(EditPoint.EditPointTypes.MultiSegmentEditPoint);
267this.editPoints[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
268this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
269(this.activeEditPoint != null && this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint))
278if (this.editPoints[i].Type != EditPoint.EditPointTypes.MultiSegmentEditPoint ||
301this.editPoints.Insert(i + 1, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, location));
317if (distance < ConnectorEditor.EditPointRadius && next.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
327if (distance < ConnectorEditor.EditPointRadius && previous.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
362void RemoveEditPoints(EditPoint.EditPointTypes editPointType)
388this.editPoints[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
389this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint)
402if (previous != null && previous.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
419previous = new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation);
420this.editPoints.InsertRange(activeEditPointIndex, new EditPoint[] { new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation), previous });
423if (next != null && next.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
440next = new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation);
441this.editPoints.InsertRange(activeEditPointIndex + 1, new EditPoint[] { next, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation) });
444if (this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
446Fx.Assert(this.editPoints[0].Type == EditPoint.EditPointTypes.ConnectionEditPoint, "EditPoint type is wrong.");
447Fx.Assert(this.editPoints[editPoints.Count - 1].Type == EditPoint.EditPointTypes.ConnectionEditPoint, "EditPoint type is wrong.");
495RemoveEditPoints(EditPoint.EditPointTypes.MultiSegmentEditPoint);
498newEditPoints.Add(new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, points[i]));
503else if (this.activeEditPoint.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
505if (previous != null && previous.Type != EditPoint.EditPointTypes.ConnectionEditPoint && next != null && next.Type != EditPoint.EditPointTypes.ConnectionEditPoint)
546EditPointTypes editPointType;
549public EditPoint(EditPointTypes editPointType, Point point)
568public EditPointTypes Type