protected override void OnExecuted(EventArgs e)
        {
            base.OnExecuted(e);
            WebServiceSettingsNode node = ChildNode as
                                          WebServiceSettingsNode;
            WebServiceURLCollectionNode webServiceURLCollectionNode =
                new WebServiceURLCollectionNode();

            node.AddNode(webServiceURLCollectionNode);
        }
Пример #2
0
        public WebServiceSettingsNode Build()
        {
            WebServiceSettingsNode      rootNode = new WebServiceSettingsNode();
            WebServiceURLCollectionNode node     = new WebServiceURLCollectionNode();
            WebServiceURLNode           webServiceURLNode;

            foreach (WebServiceURL data in webServiceSettings.WebServiceURLs)
            {
                webServiceURLNode = new WebServiceURLNode(data);
                node.AddNode(webServiceURLNode);

                if (webServiceURLNode.Name == webServiceSettings.DefaultWebServiceURL)
                {
                    defaultNode = webServiceURLNode;
                }
            }

            rootNode.AddNode(node);
            rootNode.DefaultWebServiceURLSetting = defaultNode;

            return(rootNode);
        }