public CCOLGeneratorViewModel(CCOLCodeGeneratorPlugin plugin, CCOLGenerator generator)
        {
            _Plugin           = plugin;
            _CodeGenerator    = generator;
            _ProjectGenerator = new CCOLVisualProjectGenerator();

            VisualProjects = new ObservableCollection <string>();
        }
Example #2
0
        private void GenerateController(string path, ControllerModel c)
        {
            var file = Path.Combine(path, "testGen1.tlc");

            CcolGen.ControllerFileName = file;
            CcolGen.Controller         = c;
            CcolGen.GenerateController();
            var visualGen = new CCOLVisualProjectGenerator();

            visualGen.GenerateVisualStudioProjectFiles(CcolGen, "Visual_2017", 2017);
            TLCGenSerialization.Serialize(file, c);
        }
Example #3
0
        private void GenerateIncludesList(ControllerModel c, string filename)
        {
            var sb = new StringBuilder();

            sb.AppendLine($"Overzicht TLCGen bestanden regeling: {c.Data.Naam}");
            sb.AppendLine("  > excl. dpl, sim");
            sb.AppendLine("  > let op: diverse files zijn reeds opgenomen middels #include");
            foreach (var file in _allFiles)
            {
                sb.AppendLine($"- {file}");
            }
            sb.AppendLine();
            sb.AppendLine($"Overzicht benodigde CCOL libraries regeling: {c.Data.Naam}");
            foreach (var lib in CCOLVisualProjectGenerator.GetNeededCCOLLibraries(c, true, 0))
            {
                sb.AppendLine($"- {lib}");
            }
            File.WriteAllText(filename, sb.ToString());
        }