Exemplo n.º 1
0
 /// <summary>
 /// Network > Proxy > Authentication button.
 /// Shows the proxy authentication configuration form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void proxyAuthenticationButton_Click(object sender, EventArgs e)
 {
     ProxySettings proxySettings = m_settings.Proxy;
     using (ProxyAuthenticationWindow window = new ProxyAuthenticationWindow(proxySettings))
     {
         DialogResult result = window.ShowDialog();
         if (result == DialogResult.OK)
             m_settings.Proxy = proxySettings;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Network > Proxy > Authentication button.
 /// Shows the proxy authentication configuration form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void proxyAuthenticationButton_Click(object sender, EventArgs e)
 {
     var proxySettings = m_settings.Proxy.Clone();
     using (ProxyAuthenticationWindow window = new ProxyAuthenticationWindow(proxySettings))
     {
         var result = window.ShowDialog();
         if (result == DialogResult.OK)
         {
             m_settings.Proxy = proxySettings;
         }
     }
 }