Beispiel #1
0
 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
 }
Beispiel #2
0
 void ChangeProxy(ProxyHost host)
 {
     RegKey.SetValue("ProxyEnable", 1);
     RegKey.SetValue("ProxyServer", host.Host);
     UpdateSettings();
     MessageBox.Show("Changed proxy to " + host.Host);
 }
Beispiel #3
0
 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
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 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);
     }
 }