Пример #1
0
        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);
            }
        }
Пример #2
0
 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);
     }
 }
Пример #3
0
        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>();
        }
Пример #4
0
        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>();
        }
Пример #5
0
 public HttpProxyDetails(HttpProxyTypes type, IPAddress outgoingIPAddress)
     : base(type.ToString(), GetName(type), GetDetails(type), outgoingIPAddress)
 {
 }
Пример #6
0
 public HttpProxyDetails(HttpProxyTypes type, IPAddress outgoingIPAddress)
     : base(type.ToString(), GetName(type), GetDetails(type), outgoingIPAddress)
 {
 }