Beispiel #1
0
        public ProjectInfo GetProjectInfo(string ProjectPath)
        {
            try {
                ProjectInfo pro          = new ProjectInfo();
                string      ProductName  = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "ProductName");
                string      Guidstr      = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "GUID");
                string      ProductGN    = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "ProductGN");
                string      ProjectName  = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "ProjectName");
                string      ProductUse   = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "ProductUse");
                string      ExperAddress = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "ExperAddress");
                string      ExperTime    = XMLHelpers.ReadProNodeValue(ProjectPath, "Project", "ExperTime");

                pro.ProductName  = ProductName;
                pro.ProductGN    = ProductGN;
                pro.GUID         = Guid.Parse(Guidstr);
                pro.ProductUse   = ProductUse;
                pro.ProjectName  = ProjectName;
                pro.ProjectPath  = ProjectPath;
                pro.ExperAddress = ExperAddress;
                pro.ExperTime    = ExperTime;

                return(pro);
            }
            catch {
                return(null);
            }
        }