Ejemplo n.º 1
0
 /// <summary>
 /// Saves the connected waypoints to a file.
 /// </summary>
 /// <param name="fileName">Name of the file.</param>
 public void SaveConnectedWaypoints(String fileName)
 {
     if (col.State != WaypointsState.Connected)
     {
         throw new Exception("Waypoints are already Connected");
     }
     else if (string.IsNullOrEmpty(fileName))
     {
         throw new Exception("MapName cannot be null or empty");
     }
     XmlContentLoader.SaveXmlContent(col, col.GetType(), fileName);
 }