コード例 #1
0
        public ProjectManager OpenProject(String projectFile)
        {
            if (!File.Exists(projectFile))
            {
                return(null);
            }
            if (!ProjectManager.IsProjectFile(projectFile))
            {
                return(null);
            }

            ProjectManager project = new ProjectManager(projectFile);

            this.AddChild(project);
            return(project);
        }
コード例 #2
0
        public ProjectManager OpenProject(String projectFile)
        {
            if (!File.Exists(projectFile))
            {
                return(null);
            }
            if (!ProjectManager.IsProjectFile(projectFile))
            {
                return(null);
            }

            ProjectManager project = new ProjectManager(projectFile);

            project.Load();

            this.AddChild(project);
            this.UpdateActiveCpu();
            this.SaveFile(this.FullName);

            return(project);
        }