Work on project manager and project panel

This commit is contained in:
2014-07-27 16:21:06 +03:00
parent 48972dfb52
commit 5e526fa48c
40 changed files with 961 additions and 139 deletions

View File

@ -18,7 +18,9 @@ namespace RainmeterStudio.Storage
// Deserialize file
var serializer = new XmlSerializer(typeof(Project), new XmlRootAttribute("project"));
Project project = serializer.Deserialize(file) as Project;
if (project != null)
project.Path = path;
// Clean up
file.Close();
return project;
@ -29,12 +31,13 @@ namespace RainmeterStudio.Storage
// Open file
var file = File.OpenWrite(path);
// Deserialize file
// Serialize file
var serializer = new XmlSerializer(typeof(Project), new XmlRootAttribute("project"));
serializer.Serialize(file, project);
// Clean up
file.Close();
project.Path = path;
}
}
}