Exemple #1
0
        public static XmlProjectFile Load(string path)
        {
            if (!File.Exists(path))
            {
                return(null);
            }

            var doc = new XmlDocument();

            doc.PreserveWhitespace = true;
            doc.Load(path);

            var model = new XmlProjectFile(doc);

            model.Path = path;
            return(model);
        }
 public void SaveChanges()
 {
     XmlProjectFile.Format(document);
     document.Save(Path);
 }