Exemplo n.º 1
0
 private void LoadCurrentConfiguration()
 {
     _modifiedConfiguration = controller.GetConfigurationCopy().proxy;
     UseProxyCheckBox.Checked = _modifiedConfiguration.useProxy;
     ProxyServerTextBox.Text = _modifiedConfiguration.proxyServer;
     ProxyPortTextBox.Text = _modifiedConfiguration.proxyPort.ToString();
 }
Exemplo n.º 2
0
 private void LoadCurrentConfiguration()
 {
     _modifiedConfiguration = controller.GetConfigurationCopy().proxy;
     UseProxyCheckBox.Checked = _modifiedConfiguration.useProxy;
     ProxyServerTextBox.Text = _modifiedConfiguration.proxyServer;
     ProxyPortTextBox.Text = _modifiedConfiguration.proxyPort.ToString();
     ProxyTimeoutTextBox.Text = _modifiedConfiguration.proxyTimeout.ToString();
     ProxyTypeComboBox.SelectedIndex = _modifiedConfiguration.proxyType;
 }
Exemplo n.º 3
0
        public Configuration()
        {
            version                = UpdateChecker.Version;
            strategy               = "";
            index                  = 0;
            global                 = false;
            enabled                = false;
            shareOverLan           = false;
            firstRun               = true;
            localPort              = 1080;
            portableMode           = true;
            showPluginOutput       = false;
            pacUrl                 = "";
            useOnlinePac           = false;
            secureLocalPac         = true;
            regeneratePacOnUpdate  = true;
            availabilityStatistics = false;
            autoCheckUpdate        = false;
            checkPreRelease        = false;
            isVerboseLogging       = false;

            // hidden options
            isIPv6Enabled       = false;
            generateLegacyUrl   = false;
            geositeUrl          = "";
            geositeDirectGroups = new List <string>()
            {
                "cn",
                "geolocation-!cn@cn"
            };
            geositeProxiedGroups = new List <string>()
            {
                "geolocation-!cn"
            };
            geositePreferDirect = false;
            userAgent           = "ShadowsocksWindows/$version";

            logViewer = new LogViewerConfig();
            proxy     = new ProxyConfig();
            hotkey    = new HotkeyConfig();

            firstRunOnNewVersion = false;

            configs            = new List <Server>();
            onlineConfigSource = new List <string>();
        }
Exemplo n.º 4
0
        public Configuration()
        {
            version                = UpdateChecker.Version;
            strategy               = "";
            index                  = 0;
            global                 = false;
            enabled                = false;
            shareOverLan           = false;
            isDefault              = true;
            localPort              = 1080;
            portableMode           = true;
            showPluginOutput       = false;
            pacUrl                 = "";
            useOnlinePac           = false;
            secureLocalPac         = true;
            availabilityStatistics = false;
            autoCheckUpdate        = false;
            checkPreRelease        = false;
            isVerboseLogging       = false;

            // hidden options
            isIPv6Enabled        = false;
            generateLegacyUrl    = false;
            geositeUrl           = "";
            geositeGroup         = "geolocation-!cn";
            geositeBlacklistMode = true;

            logViewer = new LogViewerConfig();
            proxy     = new ProxyConfig();
            hotkey    = new HotkeyConfig();

            updated = false;

            configs            = new List <Server>();
            onlineConfigSource = new List <string>();
        }