AuthoringOM\Design\Connector.cs (79)
841foreach (EditPoint editPoint in this.editPoints)
860for (int i = this.editPoints.Count - 1; i >= 0; i--)
862if (this.editPoints[i].Bounds.Contains(point))
864editPointHit = this.editPoints[i];
962this.editedConnector.SetConnectorSegments(GetPointsFromEditPoints(this.editPoints));
981for (int i = 0; i < this.editPoints.Count; i++)
983EditPoint editPoint = this.editPoints[i];
995for (int i = 0; i < this.editPoints.Count; i++)
997EditPoint editPoint = this.editPoints[i];
1078Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(GetPointsFromEditPoints(this.editPoints).ToArray());
1094this.editPoints.Clear();
1106if (this.editPoints.Count < 2 ||
1107this.editPoints[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
1108this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint)
1120int activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint);
1121EditPoint previous = (activeEditPointIndex > 0) ? this.editPoints[activeEditPointIndex - 1] : null;
1122EditPoint next = (activeEditPointIndex < this.editPoints.Count - 1) ? this.editPoints[activeEditPointIndex + 1] : null;
1136activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint);
1139this.editPoints.InsertRange(activeEditPointIndex, new EditPoint[] { new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation), previous });
1153activeEditPointIndex = this.editPoints.IndexOf(this.activeEditPoint);
1156this.editPoints.InsertRange(activeEditPointIndex + 1, new EditPoint[] { next, new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation) });
1179int newEditPointIndex = (this.editPoints.Count == 2) ? 1 : 0;
1184this.editPoints.InsertRange(1, newEditPoints.ToArray());
1251if (this.editPoints.Count == 0 || !this.editPoints[0].EditedConnectionPoint.Equals(Source))
1252this.editPoints.Insert(0, new EditPoint(this, Source));
1254if (this.editPoints.Count < 2 || !this.editPoints[this.editPoints.Count - 1].EditedConnectionPoint.Equals(Target))
1255editPoints.Add(new EditPoint(this, Target));
1260for (int i = 0; i < this.editPoints.Count - 1; i++)
1262if (this.editPoints[i].Type != EditPoint.EditPointTypes.MidSegmentEditPoint &&
1263this.editPoints[i + 1].Type != EditPoint.EditPointTypes.MidSegmentEditPoint &&
1264DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { this.editPoints[i].Location, this.editPoints[i + 1].Location }) > minLengthForSegmentEditPoint)
1266Point midPoint = DesignerGeometryHelper.MidPointOfLineSegment(this.editPoints[i].Location, this.editPoints[i + 1].Location);
1267this.editPoints.Insert(i + 1, new EditPoint(this, EditPoint.EditPointTypes.MidSegmentEditPoint, midPoint));
1273if (this.editPoints.Count == 2)
1284this.editPoints.InsertRange(this.editPoints.Count - 1, editPointsToAdd.ToArray());
1297for (int i = 0; i < this.editPoints.Count; i++)
1299EditPoint editPoint = this.editPoints[i];
1308this.editPoints.Remove(editPoint);
1315if (this.editPoints.Count < 2 ||
1316this.editPoints[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
1317this.editPoints[this.editPoints.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
1328for (int i = 0; i < this.editPoints.Count; i++)
1330if (this.editPoints[i].Type != EditPoint.EditPointTypes.MultiSegmentEditPoint ||
1331this.editPoints[i] == this.activeEditPoint ||
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))
1335editPointsToRetain.Add(this.editPoints[i]);
1340for (int i = 1; i < this.editPoints.Count - 1; i++)
1342EditPoint previous = this.editPoints[i - 1];
1343EditPoint current = this.editPoints[i];
1344EditPoint next = this.editPoints[i + 1];
1353this.editPoints.Remove(current);
1363this.editPoints.Remove(current);
1371for (int i = 1; i < this.editPoints.Count - 1; i++)
1373EditPoint current = this.editPoints[i];
1374EditPoint previous = this.editPoints[i - 1];
1375EditPoint next = this.editPoints[i + 1];
1383this.editPoints.Remove(current);
1390for (int i = 0; i < this.editPoints.Count - 1; i++)
1392EditPoint current = this.editPoints[i];
1393EditPoint next = this.editPoints[i + 1];
1399this.editPoints.Insert(i + 1, new EditPoint(this, EditPoint.EditPointTypes.MultiSegmentEditPoint, location));
1406if (this.editPoints.Count < 2)
1409ConnectionPoint sourceConnection = this.editPoints[0].EditedConnectionPoint;
1413ConnectionPoint targetConnection = this.editPoints[this.editPoints.Count - 1].EditedConnectionPoint;
1417for (int i = 0; i < this.editPoints.Count - 1; i++)
1419if (this.editPoints[i].Type == EditPoint.EditPointTypes.MidSegmentEditPoint &&
1420this.editPoints[i + 1].Type == EditPoint.EditPointTypes.MidSegmentEditPoint)