Exemplo n.º 1
0
 private void Map_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
 {
     if (MeasureDistance && p1)
     {
         if (linea != null)
         {
             linea.Delete();
         }
         linea = Map.ActiveMap.Shapes.AddLine(point1, Map.ActiveMap.XYToLocation(e.x, e.y));
     }
 }
Exemplo n.º 2
0
 private void Map_MouseMoveEvent(object sender, AxMapPoint._IMappointCtrlEvents_MouseMoveEvent e)
 {
     if (MeasureDistance && p1)
     {
         if (linea!=null)
             linea.Delete();
         linea = Map.ActiveMap.Shapes.AddLine(point1, Map.ActiveMap.XYToLocation(e.x, e.y));
     }
 }