private bool addProxyToProject()
 {
     if (_designPane != null)
     {
         _designPane.Loader.NotifyChanges();
         _designPane.RefreshWebServiceToolbox();
         Dictionary <string, string> web = new Dictionary <string, string>();
         web.Add(XmlTags.XMLATT_filename, System.IO.Path.GetFileName(_proxy.ProxyDllFile));
         web.Add(XmlTags.XMLATT_url, _proxy.ServerUrl);
         web.Add(XmlTags.XMLATT_config, _proxy.ConfigFile);
         _designPane.Loader.Project.AddWcfService(web);
     }
     return(true);
 }
예제 #2
0
 private bool addProxyToProject()
 {
     if (_designPane != null)
     {
         _designPane.Loader.NotifyChanges();
         _designPane.RefreshWebServiceToolbox();
         Dictionary <string, string> web = new Dictionary <string, string>();
         web.Add(XmlTags.XMLATT_filename, System.IO.Path.GetFileName(_proxy.ProxyFile));
         web.Add(XmlTags.XMLATT_asmxUrl, _proxy.AsmxUrl);
         web.Add(XmlTags.XMLATT_wsdl, System.IO.Path.GetFileName(textBoxWsdl.Text));
         web.Add(XmlTags.XMLATT_proxy, System.IO.Path.GetFileName(textBoxProxy.Text));
         _designPane.Loader.Project.AddWebService(web);
     }
     return(true);
 }