private void StartCapture() { StartStopCapture.Enabled = false; SettingsBtn.Enabled = false; FilterText.Enabled = false; LinksGrid.Rows.Clear(); // If the option to parse rules on clicking "Start" capture is enabled, do it. This option allows users to modify and reload the rules after stopping the // capture, without having to restart the program. if (Settings.IsParseRulesCapture()) { Settings.ParseRules(); } ProxyUtils.AddToHostsFile("myownwebhelper.com"); WebProxy = new TitaniumProxy(Settings, this); WebProxy.Start(FilterText.Text); ProxyUtils.EnableProxy("myownwebhelper.com", Settings.GetProxyExceptions()); StartStopCapture.Text = "Stop"; StartStopCapture.Enabled = true; }
public static void SetProxy(string ProxyAddress) { Proxy.EnableProxy(ProxyAddress); }