Пример #1
0
        private void LoadModule(SortedProjectTreeNode parentNode, ZeusModule parentModule)
        {
            SortedProjectTreeNode node;

            if ((parentNode == null) && (parentModule is ZeusProject))
            {
                rootNode = new ProjectTreeNode(parentModule as ZeusProject);
                node     = rootNode;
            }
            else
            {
                node = new ModuleTreeNode(parentModule);
                parentNode.AddSorted(node);
            }

            foreach (ZeusModule module in parentModule.ChildModules)
            {
                LoadModule(node, module);
            }

            foreach (SavedTemplateInput input in parentModule.SavedObjects)
            {
                node.AddSorted(new SavedObjectTreeNode(input));
            }
        }
Пример #2
0
        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);
        }
Пример #3
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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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);
        }
Пример #6
0
		private void LoadModule(SortedProjectTreeNode parentNode, ZeusModule parentModule) 
		{
			SortedProjectTreeNode node;
			if ((parentNode == null) && (parentModule is ZeusProject)) 
			{
				rootNode = new ProjectTreeNode(parentModule as ZeusProject);
				node = rootNode;
			}
			else
			{
				node = new ModuleTreeNode(parentModule);
				parentNode.AddSorted(node);
			}
			
			foreach (ZeusModule module in parentModule.ChildModules) 
			{
				LoadModule(node, module);
			}

			foreach (SavedTemplateInput input in parentModule.SavedObjects) 
			{
				node.AddSorted( new SavedObjectTreeNode(input) );
			}
		}
        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.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);
        }
Пример #9
0
		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);
		}
Пример #10
0
		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);
		}