public void Move(double X, double Y, double dX, double dY) { switch (this.MoveStyle) { case EGraphMoveStyle.Graph: IEnumerator enumerator1 = this.points.GetEnumerator(); try { while (enumerator1.MoveNext()) { TMarker tmarker = (TMarker)enumerator1.Current; tmarker.X += dX; tmarker.Y += dY; } break; } finally { IDisposable disposable = enumerator1 as IDisposable; if (disposable != null) { disposable.Dispose(); } } case EGraphMoveStyle.Point: IEnumerator enumerator2 = this.points.GetEnumerator(); try { while (enumerator2.MoveNext()) { TMarker tmarker = (TMarker)enumerator2.Current; if (tmarker.X == X && tmarker.Y == Y) { tmarker.X += dX; tmarker.Y += dY; break; } } break; } finally { IDisposable disposable = enumerator2 as IDisposable; if (disposable != null) { disposable.Dispose(); } } } }
public void Add(TMarker marker) { this.points.Add((object)marker); this.UX36ku1gb(marker.X, marker.Y); }
public void Add(TMarker marker) { this.points.Add((object)marker); this.UX36ku1gb(marker.X, marker.Y); }