public bool RecompileApplication(CodeGenerator codeGen, ZTreeView treeView) { if (xmlDoc == null || app == null) return false; ZApplication newApp = codeGen.RecompileApplication(xmlDoc, nodeMap, app); if (newApp != null) { app = newApp; //if (treeView != null) FillTreeView(treeView); return true; } return false; }
public void Reset(ZTreeView treeView, CodeGenerator codeGen) { app = null; BuildApplication(codeGen); if (treeView != null) FillTreeView(treeView); }
public void BuildApplication(CodeGenerator codeGen) { if (xmlDoc == null) return; app = codeGen.CreateApplication(xmlDoc, true); if (app != null) app.Load(); // load the app to create its components nodeMap = codeGen.nodeMap; // we need the GUIDs in the nodeMap for recompilation }
public static Project CreateProject(string filePath, ZTreeView treeView, CodeGenerator codeGen) { Project project = new Project(filePath); project.LoadXml(); project.BuildApplication(codeGen); if (treeView != null) project.FillTreeView(treeView); return project; }