Beispiel #1
0
        public override bool Equals(object obj)
        {
            if ((obj == null) || !this.GetType().Equals(obj.GetType()))
            {
                return(false);
            }

            var otherSettings = obj as GlobalSettings;

            return((TrackTimesWatched == otherSettings.TrackTimesWatched) &&
                   (TrackLastWatchDate == otherSettings.TrackLastWatchDate) &&
                   (VideoLoadType == otherSettings.VideoLoadType) &&
                   (CollapseTagCategories == otherSettings.CollapseTagCategories) &&
                   ObjectUtil.AreDictionariesEqual(PreviewTypes, otherSettings.PreviewTypes) &&
                   (VideoVolume == otherSettings.VideoVolume));
        }