public void LoadProject(string filename) { this.treeViewProject.Nodes.Clear(); ZeusProject proj = new ZeusProject(filename); if (proj.Load()) { this.Text = "Project: " + proj.Name; this.TabText = proj.Name; rootNode = new ProjectTreeNode(proj); foreach (ZeusModule module in proj.ChildModules) { LoadModule(rootNode, module); } foreach (SavedTemplateInput input in proj.SavedObjects) { rootNode.AddSorted(new SavedObjectTreeNode(input)); } } rootNode.Expand(); this.treeViewProject.Nodes.Add(rootNode); }
public void LoadProject(string filename) { this.treeViewProject.Nodes.Clear(); ZeusProject proj = new ZeusProject(filename); proj.DefaultSettingsDelegate = new GetDefaultSettingsDelegate(GetDefaultSettingsDictionary); if (proj.Load()) { OnTextChanged("Project: " + proj.Name, proj.Name, filename); _rootNode = new ProjectTreeNode(proj); foreach (ZeusModule module in proj.ChildModules) { LoadModule(_rootNode, module); } foreach (SavedTemplateInput input in proj.SavedObjects) { _rootNode.AddSorted(new SavedObjectTreeNode(input)); } } _rootNode.Expand(); this.treeViewProject.Nodes.Add(_rootNode); }
public void CreateNewProject() { this.treeViewProject.Nodes.Clear(); ZeusProject proj = new ZeusProject(); proj.Name = "New Project"; proj.Description = "New Zeus Project file"; rootNode = new ProjectTreeNode(proj); rootNode.Expand(); this.Text = "Project: " + proj.Name; this.TabText = proj.Name; this.treeViewProject.Nodes.Add(rootNode); }
public void LoadProject(string filename) { this.treeViewProject.Nodes.Clear(); if (rootNode == null) { ZeusProject proj = new ZeusProject(filename); if (proj.Load()) { //rootNode = new ProjectTreeNode(proj); LoadModule(null, proj); } rootNode.Expand(); } this.treeViewProject.Nodes.Add(rootNode); }
public void CreateNewProject() { this.treeViewProject.Nodes.Clear(); ZeusProject proj = new ZeusProject(); proj.DefaultSettingsDelegate = new GetDefaultSettingsDelegate(GetDefaultSettingsDictionary); proj.Name = "New Project"; proj.Description = "New Zeus Project file"; _rootNode = new ProjectTreeNode(proj); _rootNode.Expand(); OnTextChanged("Project: " + proj.Name, proj.Name, null); this.treeViewProject.Nodes.Add(_rootNode); }