示例#1
0
        public void Save(IPersistStream stream)
        {
            if (_application == null)
            {
                return;
            }

            PlugInManager compMan = new PlugInManager();

            foreach (Type compType in compMan.GetPlugins(Plugins.Type.IMapApplicationModule))
            {
                IMapApplicationModule module = _application.IMapApplicationModule(PlugInManager.PluginIDFromType(compType));
                if (module is IPersistable)
                {
                    stream.Save("Module", new ModulePersist(module));
                }
            }
        }