Ejemplo n.º 1
0
 public ProxySetting(ProxySetting source)
 {
     IsEnabled = source.IsEnabled;
     Mode = source.Mode;
     Host = source.Host;
     Port = source.Port;
     Authentication = source.Authentication;
     Credentials = new ProxyCredentials(source.Credentials);
 }
Ejemplo n.º 2
0
 public ProxySetting(ProxySetting source)
 {
     IsEnabled      = source.IsEnabled;
     Mode           = source.Mode;
     Host           = source.Host;
     Port           = source.Port;
     Authentication = source.Authentication;
     Credentials    = new ProxyCredentials(source.Credentials);
 }
Ejemplo n.º 3
0
 public void Initialize(ProxySetting Settings)
 {
     this.Settings = new ProxySetting(Settings);
     WebClientEx.GlobalProxy = GetProxy();
 }
 private void ResetAll()
 {
     settingsContainer = new Settings(EnvironmentManager.Settings);
     proxySettings = new ProxySetting(App.Kernel.Get<ProxyManager>().Settings);
     ProxySettings.DataContext = proxySettings;
     ComboBoxLanguage.SelectedIndex = CurrentLangIndex;
     BaseColorsList.SelectedItem = CurrentAppTheme;
     AccentColorsList.SelectedItem = CurrentAccent;
     UpdateCheck.DataContext = settingsContainer;
 }