public void setProxy(string text) { text = text.Remove(text.LastIndexOf(" ")); WinInetInterop.SetInternetProxy(true, (string)manProxy.GetValue(text, ""), "", WinInetInterop.IsAutoDetectProxy(), false, WinInetInterop.GetAutoConfigURL()); }
private void testForProxies() { autoDetectToolStripMenuItem.Checked = WinInetInterop.IsAutoDetectProxy(); disableProxiesToolStripMenuItem.Checked = !WinInetInterop.IsAnyProxy(); if (logic.proxiesSaved()) { setProxyToolStripMenuItem.Visible = true; deleteProxyToolStripMenuItem.Visible = true; fillProxyItem(); } else { deleteProxyToolStripMenuItem.Visible = false; setProxyToolStripMenuItem.DropDownItems.Clear(); setProxyToolStripMenuItem.Visible = false; } }
public void switchAutoDetectProxy() { WinInetInterop.SetInternetProxy(WinInetInterop.IsUseProxy(), WinInetInterop.GetProxyServerURL(), "", !WinInetInterop.IsAutoDetectProxy(), WinInetInterop.IsAutoConfigProxy(), WinInetInterop.GetAutoConfigURL()); }
public void disableAutoConfig() { WinInetInterop.SetInternetProxy(WinInetInterop.IsUseProxy(), WinInetInterop.GetProxyServerURL(), "", WinInetInterop.IsAutoDetectProxy(), false, WinInetInterop.GetAutoConfigURL()); }
public void setAutoConfig(string text) { text = text.Remove(text.LastIndexOf(" ")); WinInetInterop.SetInternetProxy(false, WinInetInterop.GetProxyServerURL(), "", WinInetInterop.IsAutoDetectProxy(), true, (string)autoConfig.GetValue(text, "")); }