private static string GetDetails(HttpProxyTypes type) { switch (type) { case HttpProxyTypes.Anonymous: return(Resources.AnonymousDetails); case HttpProxyTypes.HighAnonymous: return(Resources.HighAnonymousDetails); case HttpProxyTypes.Transparent: return(Resources.TransparentDetails); case HttpProxyTypes.ChangesContent: return(Resources.ChangesContentDetails); case HttpProxyTypes.Unchecked: return(Resources.UncheckedDetails); case HttpProxyTypes.CannotVerify: return(Resources.CannotVerifyDetails); default: throw new InvalidOperationException(Resources.UnsupportedHttpProxyType); } }
private static string GetDetails(HttpProxyTypes type) { switch (type) { case HttpProxyTypes.Anonymous: return Resources.AnonymousDetails; case HttpProxyTypes.HighAnonymous: return Resources.HighAnonymousDetails; case HttpProxyTypes.Transparent: return Resources.TransparentDetails; case HttpProxyTypes.ChangesContent: return Resources.ChangesContentDetails; case HttpProxyTypes.Unchecked: return Resources.UncheckedDetails; case HttpProxyTypes.CannotVerify: return Resources.CannotVerifyDetails; default: throw new InvalidOperationException(Resources.UnsupportedHttpProxyType); } }
public AllSettings() { TabSettings = new ObservableCollection<TabSettings>(); GeoIPSettings = new List<ParametersPair>(); ExportSettings = new ExportSettings(); PageSize = DefaultPageSize; MaxBandwidth = 1; RevertUsedProxiesOnExit = true; ShareUsageStatistic = true; ParseDetails = new List<ParseDetails>(); SelectedCulture = new LanguageManager().DefaultLanguage.Culture; RegistrySettings = new RegistrySettings(); IgnoredHttpProxyTypes = new HttpProxyTypes[] { HttpProxyTypes.ChangesContent, HttpProxyTypes.Transparent }; MainWindowState = new MainWindowState(); ResultGridColumnWidth = new List<double>(); }
public AllSettings() { TabSettings = new ObservableCollection <TabSettings>(); GeoIPSettings = new List <ParametersPair>(); ExportSettings = new ExportSettings(); PageSize = DefaultPageSize; MaxBandwidth = 1; RevertUsedProxiesOnExit = true; ShareUsageStatistic = true; ParseDetails = new List <ParseDetails>(); SelectedCulture = new LanguageManager().DefaultLanguage.Culture; RegistrySettings = new RegistrySettings(); IgnoredHttpProxyTypes = new HttpProxyTypes[] { HttpProxyTypes.ChangesContent, HttpProxyTypes.Transparent }; MainWindowState = new MainWindowState(); ResultGridColumnWidth = new List <double>(); }
public HttpProxyDetails(HttpProxyTypes type, IPAddress outgoingIPAddress) : base(type.ToString(), GetName(type), GetDetails(type), outgoingIPAddress) { }