Rose,
My first task this morning was to see what changes I had to make to get an EditOverlay/TrackShapes demo working and I was also looking for TrackEnding/TrackEnded. I initially found TrackEnding in Properties but the event does not appear to fire. The documentation says this is an obsolete and to use TrackEnded. (Unlike many of the other obsolete methods related to EditOverlay and TrackShape, this one didn’t cause a compile error.) I couldn’t find TrackEnded in Properties so I added it via code at the program startup. (I pasted that code below in case you need to see how I did it.) When I finish drawing shapes the event fires, no matter what user action finishes the drawing: mouse up, double click, etc. It looks like one of the properties of TrackEndedTrackInteractiveOverlayEventArgs (type that without missing a letter!) is the actual shape, which should be useful since in the previous version of the demo I was going back into the EditLayer’s InternalFeatures and pulling it out to add it to an InMemoryFeatureLayer.
//Event handling code
private void TrackEnded(object sender, TrackEndedTrackInteractiveOverlayEventArgs e)
{
MessageBox.Show(“TrackEnded”);
}
// Load method
winformsMap1.TrackOverlay.TrackEnded += new EventHandler<TrackEndedTrackInteractiveOverlayEventArgs>(this.TrackEnded);
Allen