public ProxySetting(ProxySetting source) { IsEnabled = source.IsEnabled; Mode = source.Mode; Host = source.Host; Port = source.Port; Authentication = source.Authentication; Credentials = new ProxyCredentials(source.Credentials); }
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; }