/// <summary> /// Saves the project to an xml definition file /// </summary> public void SaveToXml(string filePath) { // This is how to save the old project file format. //ProjectLoadAndSaveHelper.SaveToXml(filePath, this); if (ProjectName != Path.GetFileNameWithoutExtension(filePath)) ProjectName = Path.GetFileNameWithoutExtension(filePath); IProjectSerialiser serialiser = new ProjectSerialiserV1(new FileController()); serialiser.WriteProjectToDisk(this, Path.GetDirectoryName(filePath)); }