Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != typeof(SerializableLayer))
            {
                return(false);
            }

            SerializableLayer layer = (SerializableLayer)obj;

            return(Equals(layer));
        }
Exemplo n.º 2
0
 protected bool Equals(SerializableLayer other)
 {
     return(Name == other.Name && Width == other.Width && Height == other.Height && MaxWidth == other.MaxWidth && MaxHeight == other.MaxHeight &&
            BitmapBytes.SequenceEqual(other.BitmapBytes) && IsVisible == other.IsVisible && OffsetX == other.OffsetX && OffsetY == other.OffsetY && Opacity.Equals(other.Opacity));
 }