Esempio n. 1
0
        private static WPFLayoutGenerator CreateLayoutGenerator(DXCompileParameter parameter)
        {
            var layoutUnit = new LayoutGeneratorUnit(parameter.Screens);

            var assemblyInfo = new CodeGeneratorAssemblyInfo()
            {
                Title = parameter.Option.ApplicationName
            };

            var manifest = new CodeGeneratorManifest()
            {
                RootNamespace   = parameter.Option.RootNamespace,
                ApplicationName = parameter.Option.ApplicationName
            };

            // Layout Generator
            return(new WPFLayoutGenerator(
                       layoutUnit,
                       manifest,
                       assemblyInfo));
        }
Esempio n. 2
0
        private static CSharpGenerator CreateLogicGenerator(DXCompileParameter parameter)
        {
            var logicUnit = new LogicGeneratorUnit(parameter.Components);

            var assemblyInfo = new CodeGeneratorAssemblyInfo()
            {
                Title = parameter.Option.ApplicationName
            };

            var manifest = new CodeGeneratorManifest()
            {
                RootNamespace   = parameter.Option.RootNamespace,
                ApplicationName = parameter.Option.ApplicationName
            };

            // Logic Generator
            return(new CSharpGenerator(
                       logicUnit,
                       manifest,
                       assemblyInfo));
        }
Esempio n. 3
0
        private static CSharpGenerator CreateTemplateLogicGenerator(DXCompileParameter parameter)
        {
            // Template 컴포넌트 구분 필요함
            var logicUnit = new LogicGeneratorUnit(Enumerable.Empty <PBinderHost>());

            var assemblyInfo = new CodeGeneratorAssemblyInfo()
            {
                Title = parameter.Option.ApplicationName
            };

            var manifest = new CodeGeneratorManifest()
            {
                RootNamespace   = parameter.Option.RootNamespace,
                ApplicationName = parameter.Option.ApplicationName
            };

            // Logic Generator
            return(new CSharpGenerator(
                       logicUnit,
                       manifest,
                       assemblyInfo));
        }
Esempio n. 4
0
 public JSGenerator(CodeGeneratorUnit <PBinderHost> cgUnit, CodeGeneratorManifest cgManifest, CodeGeneratorAssemblyInfo cgAssmInfo) : base(cgUnit, cgManifest, cgAssmInfo)
 {
     this.JSProvider = new JSMappingProvider();
     this.Mapper     = new DXMapper <JSCodeMapAttribute>(this.JSProvider, null);
 }