1 write to editPoints
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
41
this.
editPoints
= new List<EditPoint>();
55 references to editPoints
System.Data (55)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (55)
95
return this.
editPoints
;
181
if (this.
editPoints
.Count == 0 || !this.
editPoints
[0].Location.Equals(editedConnector.Points[0]))
183
this.
editPoints
.Insert(0, new EditPoint(EditPoint.EditPointTypes.ConnectionEditPoint, editedConnector.Points[0]));
186
if (this.
editPoints
.Count < 2 || !this.
editPoints
[this.
editPoints
.Count - 1].Equals(editedConnector.Points[editedConnector.Points.Count - 1]))
188
editPoints
.Add(new EditPoint(EditPoint.EditPointTypes.ConnectionEditPoint, editedConnector.Points[editedConnector.Points.Count - 1]));
193
if (this.
editPoints
.Count == 2)
204
this.
editPoints
.Insert(this.
editPoints
.Count - 1, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, segments[i]));
216
this.
editPoints
.Clear();
266
if (this.
editPoints
.Count < 2 ||
267
this.
editPoints
[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
268
this.
editPoints
[this.
editPoints
.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
275
List<EditPoint> editPointsToRetain = new List<EditPoint>(this.
editPoints
.Count);
276
for (int i = 0; i < this.
editPoints
.Count; i++)
278
if (this.
editPoints
[i].Type != EditPoint.EditPointTypes.MultiSegmentEditPoint ||
279
this.
editPoints
[i] == this.activeEditPoint)
281
editPointsToRetain.Add(this.
editPoints
[i]);
292
for (int i = 0; i < this.
editPoints
.Count - 1; i++)
294
EditPoint current = this.
editPoints
[i];
295
EditPoint next = this.
editPoints
[i + 1];
301
this.
editPoints
.Insert(i + 1, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, location));
308
for (int i = 1; i < this.
editPoints
.Count - 1; i++)
310
EditPoint previous = this.
editPoints
[i - 1];
311
EditPoint current = this.
editPoints
[i];
312
EditPoint next = this.
editPoints
[i + 1];
321
this.
editPoints
.Remove(current);
331
this.
editPoints
.Remove(current);
365
for (int i = 0; i < this.
editPoints
.Count; i++)
367
EditPoint editPoint = this.
editPoints
[i];
379
this.
editPoints
.Remove(editPoint);
387
if (this.
editPoints
.Count < 2 ||
388
this.
editPoints
[0].Type != EditPoint.EditPointTypes.ConnectionEditPoint ||
389
this.
editPoints
[this.
editPoints
.Count - 1].Type != EditPoint.EditPointTypes.ConnectionEditPoint)
397
int activeEditPointIndex = this.
editPoints
.IndexOf(this.activeEditPoint);
398
EditPoint previous = (activeEditPointIndex > 0) ? this.
editPoints
[activeEditPointIndex - 1] : null;
399
EditPoint next = (activeEditPointIndex < this.
editPoints
.Count - 1) ? this.
editPoints
[activeEditPointIndex + 1] : null;
417
activeEditPointIndex = this.
editPoints
.IndexOf(this.activeEditPoint);
420
this.
editPoints
.InsertRange(activeEditPointIndex, new EditPoint[] { new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation), previous });
438
activeEditPointIndex = this.
editPoints
.IndexOf(this.activeEditPoint);
441
this.
editPoints
.InsertRange(activeEditPointIndex + 1, new EditPoint[] { next, new EditPoint(EditPoint.EditPointTypes.MultiSegmentEditPoint, editPointLocation) });
446
Fx.Assert(this.
editPoints
[0].Type == EditPoint.EditPointTypes.ConnectionEditPoint, "EditPoint type is wrong.");
447
Fx.Assert(this.
editPoints
[
editPoints
.Count - 1].Type == EditPoint.EditPointTypes.ConnectionEditPoint, "EditPoint type is wrong.");
450
Fx.Assert(this.
editPoints
.Count > 0, "Some edit point should exist");
453
Point begin = this.
editPoints
[0].Location;
454
Point end = this.
editPoints
[this.
editPoints
.Count - 1].Location;
500
this.
editPoints
.InsertRange(1, newEditPoints.ToArray());
536
if (this.
editPoints
.Count < 2)