Пример #1
0
        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;
        }
Пример #2
0
 public void Reset(ZTreeView treeView, CodeGenerator codeGen)
 {
     app = null;
     BuildApplication(codeGen);
     if (treeView != null) FillTreeView(treeView);
 }
Пример #3
0
 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
 }
Пример #4
0
        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;
        }