Opened 11 years ago

Closed 11 years ago

#2203 closed enhancement (fixed)

SelectByGeometry with callback notification

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: Desktop API Version:
Severity: trivial Keywords:
Cc: External ID:


The current IMapViewer.SelectByGeometry API does not allow for one-shot notifications if the method call actually changes the selection.

The current (naive) ugly approach would be to subscribe to SelectionChanged, call the SelectByGeometry method and un-subscribe from the event if the handler is called, which is ugly and cumbersome.

Instead, we should have an overload of SelectByGeometry that allows for a System.Action to be passed in that is called when the internal selection has been modified, avoiding the need to do this event subscription mess

Change History (1)

comment:1 by jng, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.