This project has moved and is read-only. For the latest updates, please go here.


Mar 25, 2007 at 2:14 PM

Library is pretty well, but it has one big disadvantage. It's - events. Please, use EventHandler<T> delegate or, at least, standard delegate signature for events (void delegateName(object sender, TypeOfYourArgs args)), because of you forgot to make param "sender" in your delegates and it is very, very bad.

I have a list of SharpMap.Forms.MapImage objects.

I subsribe to MapZoomChanged event of all objects. And, when it fires, I should know exactly which object trigger this event, but I can't do it, because of this:
public delegate void MapZoomHandler(double zoom);

I think, events of unknown object are useless.

PS: example is real., but very simplified of course.
Mar 26, 2007 at 9:52 PM
This is being corrected in version 2.0, which is not yet in release quality.
Mar 27, 2007 at 6:46 AM

I'll wait for it :)