// TODO consider objects equal if UseProxy == false in both of them
        private bool Equals(ProxyConnectionSettings other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return other.ProxyIsEnabled.Equals(ProxyIsEnabled) && Equals(other.Url, Url) && Equals(other.Domain, Domain) && Equals(other.Username, Username) && Equals(other.Password, Password);
        }
示例#2
0
 public VersionOneSettings()
 {
     ProxySettings = new ProxyConnectionSettings();
 }