I have run into a situation and need some advice on hopw to proceed. I am using custom styple to draw all of the features on my maps. The custom styles are used for several reasons, but on of those reasons is to allow me to use custom color schemes. I now want to have different map windows displaying features using different color schemes, so my customn style needs to be associated with a particular map window.
I haven't tried this yet, I need to know if I am going to run into problems if my constructor for my custom style includes an argument for the map window as follows:
[Serializable]
class MyPointStyle : PointStyle
{
private PointStyle mPointStyle;
private WinFormsMap mMapWindow;
public MyPointStyle()
: this(new PointStyle())
{ }
public MyPointStyle(WinFormsMap iMapWindow)
{
this.mMapWindow = iMapWindow;
}