Settings

Coordinator
Nov 4, 2011 at 9:14 AM

We need to provide an interface of some sort for plug-in developers to save settings.

Now every plug-in uses it's own mechanism going from saving in the registry to saving xml files in the user data folder.

Of course the exe and core plug-ins and component should use this as well.

 

[I've accidentally marked a similar discussion as Private, that's why I've duplicated it]

Nov 4, 2011 at 8:23 PM

For settings that apply application-wide, the built-in method of using the Settings class seems to work well.

For settings that apply to a single layer or project DotSpatial fires a Serializing and Deserializing event where those settings can be attached to the project.

 

This frees the developer up, so they don't have to worry about the details of persisting settings; they simply denote what they want stored.