private void ConFigureProxyConfig(ProxyConfig proxyConfig) { proxyConfig.IsUsedProxyUser = this.IsUsedProxyUser; proxyConfig.IsUsedProxyInProgram = this.IsUsedProxyUser || this.IsUsedCustomProxyForBookmakers; if (this.IsUsedProxyUser) { proxyConfig.CurrentProxy = new ProxyData() { ProxyAddress = this.UserProxyAddress, ProxyPort = this.UserProxyPort, IsProxyAuth = this.UserIsProxyAuth, ProxyLogin = this.UserProxyLogin, ProxyPassword = this.UserProxyPassword, ProxyType = this.UserProxyType }; proxyConfig.UserProxy = proxyConfig.CurrentProxy; } else { proxyConfig.CurrentProxy = ProxyData.GetDefaultValue(); proxyConfig.CurrentProxy.ProxyType = EProxyType.Direct; } }