Ejemplo n.º 1
0
        private void GenerateDerivedMvClassFiles(MvClassData classData)
        {
            CodeFilesComposer.DownFolder(classData.ClassName);

            CodeFilesComposer.InitalizeFile(classData.ClassName + ".cs");

            DerivedMvClassFileGenerator.Generate(this, classData);

            CodeFilesComposer.UnselectActiveFile();

            foreach (var classData2 in MultivectorClassesData.Values)
            {
                CodeFilesComposer.InitalizeFile(classData.ClassName + "Calc" + classData2.ClassId + ".cs");

                DerivedMvClassCalcFileGenerator.Generate(this, classData, classData2);

                CodeFilesComposer.UnselectActiveFile();
            }

            CodeFilesComposer.UpFolder();
        }
Ejemplo n.º 2
0
        internal static void Generate(MvLibrary libGen, MvClassData derivedClassData, MvClassData calcClassData)
        {
            var generator = new DerivedMvClassCalcFileGenerator(libGen, derivedClassData, calcClassData);

            generator.Generate();
        }