예제 #1
0
 public List <Territory> TerritoryListFrom(GoogleMapsKml kml)
 {
     try
     {
         return(TerritoriesFrom(kml.Document));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
        public void Save(string fileName, GoogleMapsKml kml)
        {
            if (string.IsNullOrWhiteSpace(fileName))
            {
                return;
            }

            var serializer = new XmlSerializer(typeof(GoogleMapsKml));
            var stream     = File.Create(fileName);

            serializer.Serialize(stream, kml);
            stream.Flush();
            stream.Close();
        }