Пример #1
0
        protected void Initialise(Workspace workspace)
        {
            _workspace = workspace;

            foreach (JadeData.Workspace.IFolder f in _data.Folders)
            {
                WorkspaceFolder folder = new WorkspaceFolder(this, f);
                folder.Initialise(_workspace);
                AddChildFolder(f);
            }

            foreach (JadeData.Workspace.IItem item in _data.Items)
            {
                if (item is JadeData.Project.IProject)
                {
                    AddChildProject(item as JadeData.Project.IProject);
                    //AddChildProject(new Project(_workspace, this, item as JadeData.Project.IProject));
                }
            }
        }
Пример #2
0
        public ProjectFolder(Workspace workspace, TreeNodeBase parent, JadeData.Project.IFolder data)
            :   base(data.Name, parent)
        {
            _workspace = workspace;
            _data = data;

            foreach (JadeData.Project.IFolder f in _data.Folders)
            {
                AddChildFolder(new ProjectFolder(workspace, this, f));
                
            }

            foreach (JadeData.Project.IItem i in _data.Items)
            {
                if (i is JadeData.Project.File)
                {
                    AddChildFile(new File(this, i as JadeData.Project.File));
                    
                }
            }
        }
Пример #3
0
 public Project(Workspace workspace, TreeNodeBase parent, JadeData.Project.IProject project)
     :base(workspace, parent, project)
 {
     _data = project;
 }