10 instantiations of EditPoint
System.Workflow.ComponentModel (10)
AuthoringOM\Design\Connector.cs (10)
1138previous = new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation);
1139this.editPoints.InsertRange(activeEditPointIndex, new EditPoint[] { new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation), previous });
1155next = new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation);
1156this.editPoints.InsertRange(activeEditPointIndex + 1, new EditPoint[] { next, new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation) });
1183newEditPoints.Add(new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, points[i]));
1252this.editPoints.Insert(0, new EditPoint(this, Source));
1255editPoints.Add(new EditPoint(this, Target));
1267this.editPoints.Insert(i + 1, new EditPoint(this, EditPoint.EditPointTypes.MidSegmentEditPoint, midPoint));
1283editPointsToAdd.Add(new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, segments[i]));
1399this.editPoints.Insert(i + 1, new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, location));
80 references to EditPoint
System.Workflow.ComponentModel (80)
AuthoringOM\Design\Connector.cs (80)
803private EditPoint activeEditPoint;
804private List<EditPoint> editPoints = new List<EditPoint>();
841foreach (EditPoint editPoint in this.editPoints)
859EditPoint editPointHit = null;
908EditPoint activeEditPoint = this.activeEditPoint;
916if (activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
983EditPoint editPoint = this.editPoints[i];
997EditPoint editPoint = this.editPoints[i];
998if (editPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint ||
999editPoint.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
1096AddEditPoints(EditPoint.EditPointTypes.ConnectionEditPoint);
1097AddEditPoints(EditPoint.EditPointTypes.MultiSegmentEditPoint);
1098AddEditPoints(EditPoint.EditPointTypes.MidSegmentEditPoint);
1107this.editPoints[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
1108this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint)
1115RemoveEditPoints(EditPoint.EditPointTypes.MidSegmentEditPoint);
1121EditPoint previous = (activeEditPointIndex > 0) ? this.editPoints[activeEditPointIndex - 1] : null;
1122EditPoint next = (activeEditPointIndex < this.editPoints.Count - 1) ? this.editPoints[activeEditPointIndex + 1] : null;
1125if (previous != null && previous.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
1138previous = new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation);
1139this.editPoints.InsertRange(activeEditPointIndex, new EditPoint[] { new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation), previous });
1142if (next != null && next.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
1155next = new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation);
1156this.editPoints.InsertRange(activeEditPointIndex + 1, new EditPoint[] { next, new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation) });
1160if (this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint)
1165RemoveEditPoints(EditPoint.EditPointTypes.MultiSegmentEditPoint);
1180List<EditPoint> newEditPoints = new List<EditPoint>();
1183newEditPoints.Add(new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, points[i]));
1186else if (this.activeEditPoint.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
1188if (previous != null && previous.Type != EditPoint.EditPointTypes.ConnectionEditPoint && next != null && next.Type != EditPoint.EditPointTypes.ConnectionEditPoint)
1208else if (this.activeEditPoint.Type == EditPoint.EditPointTypes.MidSegmentEditPoint)
1210if (previous != null && previous.Type != EditPoint.EditPointTypes.ConnectionEditPoint && next != null && next.Type != EditPoint.EditPointTypes.ConnectionEditPoint)
1240AddEditPoints(EditPoint.EditPointTypes.MidSegmentEditPoint);
1247private void AddEditPoints(EditPoint.EditPointTypes editPointType)
1249if (editPointType == EditPoint.EditPointTypes.ConnectionEditPoint)
1257else if (editPointType == EditPoint.EditPointTypes.MidSegmentEditPoint)
1262if (this.editPoints[i].Type != EditPoint.EditPointTypes.MidSegmentEditPoint &&
1263this.editPoints[i + 1].Type != EditPoint.EditPointTypes.MidSegmentEditPoint &&
1267this.editPoints.Insert(i + 1, new EditPoint(this, EditPoint.EditPointTypes.MidSegmentEditPoint, midPoint));
1271else if (editPointType == EditPoint.EditPointTypes.MultiSegmentEditPoint)
1281List<EditPoint> editPointsToAdd = new List<EditPoint>();
1283editPointsToAdd.Add(new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, segments[i]));
1294private void RemoveEditPoints(EditPoint.EditPointTypes editPointType)
1296List<EditPoint> editPointsToRemove = new List<EditPoint>();
1299EditPoint editPoint = this.editPoints[i];
1306EditPoint editPoint = editPointsToRemove[i];
1316this.editPoints[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
1317this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
1318(this.activeEditPoint != null && this.activeEditPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint))
1324RemoveEditPoints(EditPoint.EditPointTypes.MidSegmentEditPoint);
1327List<EditPoint> editPointsToRetain = new List<EditPoint>();
1330if (this.editPoints[i].Type != EditPoint.EditPointTypes.MultiSegmentEditPoint ||
1332(i > 0 && this.editPoints[i - 1].Type == EditPoint.EditPointTypes.MidSegmentEditPoint) ||
1333(i < this.editPoints.Count - 1 && this.editPoints[i + 1].Type == EditPoint.EditPointTypes.MidSegmentEditPoint))
1342EditPoint previous = this.editPoints[i - 1];
1343EditPoint current = this.editPoints[i];
1344EditPoint next = this.editPoints[i + 1];
1349if ((distance < current.Bounds.Width || distance < current.Bounds.Height) && next.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
1359if ((distance < current.Bounds.Width || distance < current.Bounds.Height) && previous.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)
1373EditPoint current = this.editPoints[i];
1374EditPoint previous = this.editPoints[i - 1];
1375EditPoint next = this.editPoints[i + 1];
1392EditPoint current = this.editPoints[i];
1393EditPoint next = this.editPoints[i + 1];
1399this.editPoints.Insert(i + 1, new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, location));
1419if (this.editPoints[i].Type == EditPoint.EditPointTypes.MidSegmentEditPoint &&
1420this.editPoints[i + 1].Type == EditPoint.EditPointTypes.MidSegmentEditPoint)
1428private List<Point> GetPointsFromEditPoints(List<EditPoint> editPoints)
1434EditPoint editPoint = editPoints[i];
1435if (editPoint.Type == EditPoint.EditPointTypes.ConnectionEditPoint ||
1436editPoint.Type == EditPoint.EditPointTypes.MultiSegmentEditPoint)