예제 #1
0
        private void LoadSettings()
        {
            UseCustomDNSServer = SettingsManager.Current.DNSLookup_UseCustomDNSServer;

            if (SettingsManager.Current.DNSLookup_CustomDNSServer != null)
            {
                CustomDNSServer = string.Join("; ", SettingsManager.Current.DNSLookup_CustomDNSServer);
            }

            Port                     = SettingsManager.Current.DNSLookup_Port;
            AddDNSSuffix             = SettingsManager.Current.DNSLookup_AddDNSSuffix;
            UseCustomDNSSuffix       = SettingsManager.Current.DNSLookup_UseCustomDNSSuffix;
            CustomDNSSuffix          = SettingsManager.Current.DNSLookup_CustomDNSSuffix;
            ResolveCNAME             = SettingsManager.Current.DNSLookup_ResolveCNAME;
            Recursion                = SettingsManager.Current.DNSLookup_Recursion;
            UseResolverCache         = SettingsManager.Current.DNSLookup_UseResolverCache;
            Classes                  = Enum.GetValues(typeof(QClass)).Cast <QClass>().OrderBy(x => x.ToString()).ToList();
            Class                    = Classes.First(x => x == SettingsManager.Current.DNSLookup_Class);
            ShowMostCommonQueryTypes = SettingsManager.Current.DNSLookup_ShowMostCommonQueryTypes;
            TransportTypes           = Enum.GetValues(typeof(TransportType)).Cast <TransportType>().OrderBy(x => x.ToString()).ToList();
            TransportType            = TransportTypes.First(x => x == SettingsManager.Current.DNSLookup_TransportType);
            Attempts                 = SettingsManager.Current.DNSLookup_Attempts;
            Timeout                  = SettingsManager.Current.DNSLookup_Timeout;
            ShowStatistics           = SettingsManager.Current.DNSLookup_ShowStatistics;
        }
예제 #2
0
 private void LoadSettings()
 {
     UseCustomDNSServer = SettingsManager.Current.DNSLookup_UseCustomDNSServer;
     CustomDNSServer    = SettingsManager.Current.DNSLookup_CustomDNSServer;
     AddDNSSuffix       = SettingsManager.Current.DNSLookup_AddDNSSuffix;
     UseCustomDNSSuffix = SettingsManager.Current.DNSLookup_UseCustomDNSSuffix;
     CustomDNSSuffix    = SettingsManager.Current.DNSLookup_CustomDNSSuffix;
     ResolveCNAME       = SettingsManager.Current.DNSLookup_ResolveCNAME;
     Recursion          = SettingsManager.Current.DNSLookup_Recursion;
     UseResolverCache   = SettingsManager.Current.DNSLookup_UseResolverCache;
     Classes            = Enum.GetValues(typeof(QClass)).Cast <QClass>().OrderBy(x => x.ToString()).ToList();
     Class          = Classes.First(x => x == SettingsManager.Current.DNSLookup_Class);
     TransportTypes = Enum.GetValues(typeof(TransportType)).Cast <TransportType>().OrderBy(x => x.ToString()).ToList();
     TransportType  = TransportTypes.First(x => x == SettingsManager.Current.DNSLookup_TransportType);
     Attempts       = SettingsManager.Current.DNSLookup_Attempts;
     Timeout        = SettingsManager.Current.DNSLookup_Timeout;
 }