예제 #1
0
        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 (DefaultViewers.Count != v.DefaultViewers.Count)
            {
                return(false);
            }
            for (int i = 0; i < DefaultViewers.Count; i++)
            {
                if (!DefaultViewers[i].Equals(v.DefaultViewers[i]))
                {
                    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 (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 (!LastLoginVersion.Equals(v.LastLoginVersion))
            {
                return(false);
            }
            if (!LastSaveDirectory.Equals(v.LastSaveDirectory))
            {
                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);
        }
예제 #2
0
        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);
        }