MapAround.Mapping.MapWorkspace.addDataProviderElement C# (CSharp) Méthode

addDataProviderElement() private méthode

private addDataProviderElement ( LayerBase layer, XmlDocument doc, XmlElement layerElement ) : void
layer LayerBase
doc System.Xml.XmlDocument
layerElement System.Xml.XmlElement
Résultat void
        private void addDataProviderElement(LayerBase layer, XmlDocument doc, XmlElement layerElement)
        {
            XmlElement dataProvider = doc.CreateElement("data_provider");
            layerElement.AppendChild(dataProvider);
            addAttribute(doc, dataProvider, "registration_name", layer.DataProviderRegName);

            XmlElement parameterList = doc.CreateElement("parameters");
            dataProvider.AppendChild(parameterList);
            foreach (string s in layer.DataProviderParameters.Keys)
            {
                XmlElement parameter = doc.CreateElement("parameter");
                parameterList.AppendChild(parameter);
                addAttribute(doc, parameter, "name", s);
                addAttribute(doc, parameter, "value", layer.DataProviderParameters[s]);
            }
        }