예제 #1
0
파일: Project.cs 프로젝트: dianatle/XTMF
        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;
        }
예제 #2
0
파일: Project.cs 프로젝트: Cocotus/XTMF
        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;
        }