public void Save(IPersistStream stream) { if (_application == null) return; PlugInManager compMan=new PlugInManager(); foreach (XmlNode comp in compMan.GetPluginNodes(Plugins.Type.IMapApplicationModule)) { IMapApplicationModule module = _application.IMapApplicationModule(PlugInManager.Guid(comp)); if (module is IPersistable) { stream.Save("Module", new ModulePersist(module)); } } }