Beispiel #1
0
        public override bool Equals(object o)
        {
            if (!(o is Accounts))
            {
                return(false);
            }
            Accounts v = o as Accounts;


            if (DropboxAccounts.Count != v.DropboxAccounts.Count)
            {
                return(false);
            }
            for (int i = 0; i < DropboxAccounts.Count; i++)
            {
                if (!DropboxAccounts[i].Equals(v.DropboxAccounts[i]))
                {
                    return(false);
                }
            }


            if (FtpAccounts.Count != v.FtpAccounts.Count)
            {
                return(false);
            }
            for (int i = 0; i < FtpAccounts.Count; i++)
            {
                if (!FtpAccounts[i].Equals(v.FtpAccounts[i]))
                {
                    return(false);
                }
            }


            if (HttpAccounts.Count != v.HttpAccounts.Count)
            {
                return(false);
            }
            for (int i = 0; i < HttpAccounts.Count; i++)
            {
                if (!HttpAccounts[i].Equals(v.HttpAccounts[i]))
                {
                    return(false);
                }
            }


            if (SmtpAccounts.Count != v.SmtpAccounts.Count)
            {
                return(false);
            }
            for (int i = 0; i < SmtpAccounts.Count; i++)
            {
                if (!SmtpAccounts[i].Equals(v.SmtpAccounts[i]))
                {
                    return(false);
                }
            }


            if (TimeServerAccounts.Count != v.TimeServerAccounts.Count)
            {
                return(false);
            }
            for (int i = 0; i < TimeServerAccounts.Count; i++)
            {
                if (!TimeServerAccounts[i].Equals(v.TimeServerAccounts[i]))
                {
                    return(false);
                }
            }

            return(true);
        }
        public override bool Equals(object o)
        {
            if (!(o is ApplicationSettings))
            {
                return(false);
            }
            ApplicationSettings v = o as ApplicationSettings;

            if (!Accounts.Equals(v.Accounts))
            {
                return(false);
            }
            if (!JobHistory.Equals(v.JobHistory))
            {
                return(false);
            }

            if (PrinterMappings.Count != v.PrinterMappings.Count)
            {
                return(false);
            }
            for (int i = 0; i < PrinterMappings.Count; i++)
            {
                if (!PrinterMappings[i].Equals(v.PrinterMappings[i]))
                {
                    return(false);
                }
            }

            if (!RssFeed.Equals(v.RssFeed))
            {
                return(false);
            }

            if (TitleReplacement.Count != v.TitleReplacement.Count)
            {
                return(false);
            }
            for (int i = 0; i < TitleReplacement.Count; i++)
            {
                if (!TitleReplacement[i].Equals(v.TitleReplacement[i]))
                {
                    return(false);
                }
            }

            if (!UsageStatistics.Equals(v.UsageStatistics))
            {
                return(false);
            }
            if (!ConversionTimeout.Equals(v.ConversionTimeout))
            {
                return(false);
            }
            if (!EnableTips.Equals(v.EnableTips))
            {
                return(false);
            }
            if (!Language.Equals(v.Language))
            {
                return(false);
            }
            if (!LicenseExpirationReminder.Equals(v.LicenseExpirationReminder))
            {
                return(false);
            }
            if (!LoggingLevel.Equals(v.LoggingLevel))
            {
                return(false);
            }
            if (!NextUpdate.Equals(v.NextUpdate))
            {
                return(false);
            }
            if (!UnitOfMeasurement.Equals(v.UnitOfMeasurement))
            {
                return(false);
            }
            if (!UpdateInterval.Equals(v.UpdateInterval))
            {
                return(false);
            }
            return(true);
        }
        public override bool Equals(object o)
        {
            if (!(o is ApplicationSettings))
            {
                return(false);
            }
            ApplicationSettings v = o as ApplicationSettings;

            if (!Accounts.Equals(v.Accounts))
            {
                return(false);
            }

            if (PrinterMappings.Count != v.PrinterMappings.Count)
            {
                return(false);
            }
            for (int i = 0; i < PrinterMappings.Count; i++)
            {
                if (!PrinterMappings[i].Equals(v.PrinterMappings[i]))
                {
                    return(false);
                }
            }


            if (TitleReplacement.Count != v.TitleReplacement.Count)
            {
                return(false);
            }
            for (int i = 0; i < TitleReplacement.Count; i++)
            {
                if (!TitleReplacement[i].Equals(v.TitleReplacement[i]))
                {
                    return(false);
                }
            }

            if (!AskSwitchDefaultPrinter.Equals(v.AskSwitchDefaultPrinter))
            {
                return(false);
            }
            if (!Language.Equals(v.Language))
            {
                return(false);
            }
            if (!LastUsedProfileGuid.Equals(v.LastUsedProfileGuid))
            {
                return(false);
            }
            if (!LoggingLevel.Equals(v.LoggingLevel))
            {
                return(false);
            }
            if (!PrimaryPrinter.Equals(v.PrimaryPrinter))
            {
                return(false);
            }
            if (!UpdateInterval.Equals(v.UpdateInterval))
            {
                return(false);
            }

            return(true);
        }