Пример #1
0
        /// <inheritdoc/>
        public bool Equals(Style?other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Foreground.Equals(other.Foreground) &&
                   Background.Equals(other.Background) &&
                   Decoration == other.Decoration);
        }
Пример #2
0
        /// <inheritdoc/>
        public bool Equals(Style?other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Foreground.Equals(other.Foreground) &&
                   Background.Equals(other.Background) &&
                   Decoration == other.Decoration &&
                   string.Equals(Link, other.Link, StringComparison.Ordinal));
        }
Пример #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj.GetType() != typeof(ChunkStyle))
            {
                return(false);
            }
            ChunkStyle other = (ChunkStyle)obj;

            return(Name == other.Name && Foreground.Equals(other.Foreground) && Background.Equals(other.Background) && FontWeight == other.FontWeight && FontStyle == other.FontStyle);
        }
Пример #4
0
        public override bool Equals(object obj)
        {
            if (obj == null || !(obj is LuaColorScheme))
            {
                return(false);
            }
            else
            {
                LuaColorScheme objectToCompare = obj as LuaColorScheme;

                return(Comments == objectToCompare.Comments &&
                       Values == objectToCompare.Values &&
                       Statements == objectToCompare.Statements &&
                       Operators == objectToCompare.Operators &&
                       SpecialOperators == objectToCompare.SpecialOperators &&
                       Background.Equals(objectToCompare.Background, StringComparison.OrdinalIgnoreCase) &&
                       Foreground.Equals(objectToCompare.Foreground, StringComparison.OrdinalIgnoreCase));
            }
        }
Пример #5
0
        public override bool Equals(object obj)
        {
            if (obj == null || !(obj is ClassicScriptColorScheme))
            {
                return(false);
            }
            else
            {
                ClassicScriptColorScheme objectToCompare = obj as ClassicScriptColorScheme;

                return(Sections == objectToCompare.Sections &&
                       Values == objectToCompare.Values &&
                       References == objectToCompare.References &&
                       StandardCommands == objectToCompare.StandardCommands &&
                       NewCommands == objectToCompare.NewCommands &&
                       Comments == objectToCompare.Comments &&
                       Background.Equals(objectToCompare.Background, StringComparison.OrdinalIgnoreCase) &&
                       Foreground.Equals(objectToCompare.Foreground, StringComparison.OrdinalIgnoreCase));
            }
        }
Пример #6
0
        public override bool Equals(object obj)
        {
            if (!(obj is TransportClass other))
            {
                return(false);
            }

            if (!Text.Equals(other.Text))
            {
                return(false);
            }

            if (!Background.Equals(other.Background))
            {
                return(false);
            }

            if (!Foreground.Equals(other.Foreground))
            {
                return(false);
            }

            return(true);
        }
 public bool Equals(DisplayColors other)
 {
     return(Foreground.Equals(other.Foreground) && Background.Equals(other.Background));
 }