Exemplo n.º 1
0
 /*
  * this is where we tried to make it so that a selected point is able to be moved. but we only want the points that are connected to a SelectedPolygon to move
  * which leads us to the commented out methods and errors in the Polygon_TouchDown part and the AddPoint part.
  */
 internal static void MovePoint(GISMapPoint GMPoint, GISMapPolygon Polygon, GISMapPoint SelectedPoint, SurfaceWindow1 mapwindow)
 {
     GMPoint.PointLocation = SelectedPoint.PointLocation;
     Polygon.AddPolygon(mapwindow);
 }
Exemplo n.º 2
0
 /*
  * this was used to take the Points from the SelectedPolygon and say that that are indeed connected to the SelectedPolygon, and nothing else.
  * it also is suppose to allow you to move a selected point if that point is connected to the polygon.
  */
 internal static void FindPoint(GISMapPoint SelectedPoint, SurfaceWindow1 mapwindow)
 {
     foreach(GISMapPolygon Polygon in mapwindow.MapPolygons)
     {
         foreach(GISMapPoint GMPoint in mapwindow.MapPolygons)
         {
             if (SelectedPoint.Equals(GMPoint))
             {
                 MovePoint(GMPoint, Polygon, SelectedPoint,mapwindow);
                 break;
             }
         }
     }
 }