Ejemplo n.º 1
0
        private void btnAddProvider_Click(object sender, EventArgs e)
        {
            var addProviderForm = new AddProviderForm();
            var dr=addProviderForm.ShowDialog(this);
            if (dr == DialogResult.OK)
            {
                var name = addProviderForm.ProviderName;
                var url=addProviderForm.ProvidedServiceUrl;
                var enumBruTileLayer = addProviderForm.EnumBruTileLayer;

                // Now write an XML file to the services...
                WriteProviderXml(name,url,enumBruTileLayer);

                // now refresh...
                InitForm();
            }
        }
Ejemplo n.º 2
0
        private void btnAddProvider_Click(object sender, EventArgs e)
        {
            var addProviderForm = new AddProviderForm();
            var dr = addProviderForm.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                var name             = addProviderForm.ProviderName;
                var url              = addProviderForm.ProvidedServiceUrl;
                var enumBruTileLayer = addProviderForm.EnumBruTileLayer;

                // Now write an XML file to the services...
                WriteProviderXml(name, url, enumBruTileLayer);

                // now refresh...
                InitForm();
            }
        }