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);
        }
Beispiel #2
0
        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 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 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);
		}