Exemplo n.º 1
0
        private static ExtendedData ParseExtendedData(XmlNode xnode)
        {
            ExtendedData data = new ExtendedData();

            foreach (XmlNode node in xnode.ChildNodes)
            {
                string name = node.Attributes["name"]?.FirstChild.Value;
                if (name != null)
                {
                    data.AddData(new ExtendedData.Data(name, node.FirstChild.Value));
                }
            }

            return(data);
        }
Exemplo n.º 2
0
        public KmlProperties(KmlProperties p)
        {
            Name         = p.Name;
            Desctription = p.Desctription ?? String.Empty;
            StyleUrl     = p.StyleUrl;
            Open         = p.Open;
            Visibility   = p.Visibility;

            Author          = p.Author;
            Link            = p.Link;
            Address         = p.Address;
            Snippit         = p.Snippit;
            SnippitMaxLines = p.SnippitMaxLines;
            Region          = p.Region;
            ExtendedData    = p.ExtendedData;
        }