public ProxyRule(ProxyHost Proxy, string SSID) { this.Proxy = Proxy; this.SSID = SSID; this.Enabled = !Proxy.Host.StartsWith(":"); //Disabled if no proxy specified this.Default = SSID != ""; //Default if no SSID specified }
void ChangeProxy(ProxyHost host) { RegKey.SetValue("ProxyEnable", 1); RegKey.SetValue("ProxyServer", host.Host); UpdateSettings(); MessageBox.Show("Changed proxy to " + host.Host); }
void ChangeProxy(ProxyHost host) { RegKey.SetValue("ProxyEnable", 1); RegKey.SetValue("ProxyServer", host.Host); UpdateSettings(); if (_ssid == null || _ssid == "") MainWindow.tb_icon.ShowBalloonTip("Disconnected from Wifi", "Changed proxy to: " + host.Host, Hardcodet.Wpf.TaskbarNotification.BalloonIcon.Info); else MainWindow.tb_icon.ShowBalloonTip("Now connected to: " + _ssid, "Changed proxy to: " + host.Host, Hardcodet.Wpf.TaskbarNotification.BalloonIcon.Info); }
void ChangeProxy(ProxyHost host) { RegKey.SetValue("ProxyEnable", 1); RegKey.SetValue("ProxyServer", host.Host); UpdateSettings(); if (_ssid == null || _ssid == "") { MainWindow.tb_icon.ShowBalloonTip("Disconnected from Wifi", "Changed proxy to: " + host.Host, Hardcodet.Wpf.TaskbarNotification.BalloonIcon.Info); } else { MainWindow.tb_icon.ShowBalloonTip("Now connected to: " + _ssid, "Changed proxy to: " + host.Host, Hardcodet.Wpf.TaskbarNotification.BalloonIcon.Info); } }