Beispiel #1
0
        public IModelSystemTemplate CreateModelSystem(ref string error, IConfiguration configuration, IModelSystemStructure modelSystemStructure)
        {
            if (!modelSystemStructure.Validate(ref error))
            {
                return null;
            }

            IModelSystemTemplate modelSystem = null;
            if (CreateModule(configuration, modelSystemStructure, modelSystemStructure, ref error))
            {
                modelSystem = modelSystemStructure.Module as IModelSystemTemplate;
            }
            return modelSystem;
        }
Beispiel #2
0
        public IModelSystemTemplate CreateModelSystem(ref string error, IModelSystemStructure modelSystemStructure)
        {
            if(!modelSystemStructure.Validate(ref error))
            {
                return null;
            }

            IModelSystemTemplate modelSystem = null;
            IConfiguration proxy = new XTMF.RunProxy.ConfigurationProxy(Configuration as Configuration, this);
            if(CreateModule(proxy, modelSystemStructure, modelSystemStructure, ref error))
            {
                modelSystem = modelSystemStructure.Module as IModelSystemTemplate;
            }
            return modelSystem;
        }