private void proxyButton_Click(object sender, EventArgs e)
        {
            using (var form = new WebProxySettingsForm())
            {
                form.WebProxy      = WebServiceManager.Current.WebServiceProxy as WebProxy;
                form.WebProxyUsage = WebServiceManager.Current.WebProxyUsage;

                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    WebServiceManager.Current.WebServiceProxy = form.WebProxy;
                    WebServiceManager.Current.WebProxyUsage   = form.WebProxyUsage;
                }
            }
        }
Exemplo n.º 2
0
		private void proxyButton_Click(object sender, EventArgs e)
		{
			using (var form = new WebProxySettingsForm())
			{
				form.WebProxy = WebServiceManager.Current.WebServiceProxy as WebProxy;
				form.WebProxyUsage = WebServiceManager.Current.WebProxyUsage;

				if (form.ShowDialog(this) == DialogResult.OK)
				{
					WebServiceManager.Current.WebServiceProxy = form.WebProxy;
					WebServiceManager.Current.WebProxyUsage = form.WebProxyUsage;
				}
			}
		}