public void ExportXml(string xmlFileName, int version) { // Get the area to export. RectangleF mapArea = GetAllPrintAreas(); // Export the XML file. ExportXmlBase exportXml; if (version == 2) { exportXml = new ExportXmlVersion2(); } else if (version == 3) { exportXml = new ExportXmlVersion3(); } else { throw new ApplicationException("Unknown XML version " + version.ToString()); } exportXml.WriteXml(xmlFileName, eventDB, mapArea, mapDisplay.CoordinateMapper); }
public void ExportXml(string xmlFileName) { // Get the area to export. RectangleF mapArea = GetAllCourseAreas(); // Export the XML file. ExportXmlBase exportXml = new ExportXmlVersion2(); exportXml.WriteXml(xmlFileName, eventDB, mapArea, mapDisplay.CoordinateMapper); }