Ejemplo n.º 1
0
        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();
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public void Add(TMarker marker)
 {
     this.points.Add((object)marker);
     this.UX36ku1gb(marker.X, marker.Y);
 }
Ejemplo n.º 3
0
		public void Add(TMarker marker)
		{
			this.points.Add((object)marker);
			this.UX36ku1gb(marker.X, marker.Y);
		}