示例#1
0
        private void SetProxy()
        {
            Dialogs.ProxySettings dialog = new Dialogs.ProxySettings();
            if (dialog.Run() == ResponseType.Ok)
            {
                Proxy.UseProxyAuth = dialog.UseProxyAuth;
                Proxy.EnableProxy  = dialog.EnableProxy;
                Proxy.Username     = dialog.Username;
                Proxy.Password     = dialog.Password;
                Proxy.Host         = dialog.Host;
                Proxy.Port         = dialog.Port;

                // Save Proxy Configuration
                Proxy.Save();
            }
            dialog.Destroy();
        }
示例#2
0
        private void SetProxy()
        {
            Dialogs.ProxySettings dialog = new Dialogs.ProxySettings();
            if (dialog.Run() == ResponseType.Ok) {
                Proxy.UseProxyAuth = dialog.UseProxyAuth;
                Proxy.EnableProxy = dialog.EnableProxy;
                Proxy.Username = dialog.Username;
                Proxy.Password = dialog.Password;
                Proxy.Host = dialog.Host;
                Proxy.Port = dialog.Port;

                // Save Proxy Configuration
                Proxy.Save();
            }
            dialog.Destroy();
        }