I think it will be very difficult, beacause when I wrote the code below :
OpenProjectMwprj mwprjOpener = new OpenProjectMwprj();
mwprjOpener.App = appManager1;
Which I didn't find the solution .
Anyway Thanks for your explanation vatavian.
OpenProjectMwprj mwprjOpener = new OpenProjectMwprj();
mwprjOpener.App = appManager1;
try
{
mwprjOpener.Open(ProjectName);
}
catch (IOException exIO)
{
MessageBox.Show(this, "Could not open the specified map file " + ProjectName + Environment.NewLine + Environment.NewLine + exIO.Message, "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
I always got this error : RuntimeBinderException: Cannot apply indexing with [] to an expression of type 'DotSpatial.Plugins.MapWindowProjectFileCompatibility.DynamicXMLNode'Which I didn't find the solution .
Anyway Thanks for your explanation vatavian.