This project is read-only.

Help wanted in the map.cs

Feb 20, 2009 at 4:24 PM
Edited Feb 20, 2009 at 4:43 PM


public Map()






 KeyDown += (o, e) => Events.KeyDown(this, e);





would you explain what dose the code mean for me?

Thanks in advance.




Feb 20, 2009 at 7:22 PM
Edited Feb 20, 2009 at 7:37 PM
This is internal wiring.  It's an anonymous delegate to wire up our MapEvent class which aggregates all the publicly exposed map related events.  For example, this will allow you to create an event handler as follows:

MapInstance.Events.MapMouseUp +=  Events_MapMouseUp;