Пример #1
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer, string prefix, FillBase fill)
        {
            base.Serialize(writer, prefix, fill);
            GlassFill c = fill as GlassFill;

            if (c == null || c.Color != Color)
            {
                writer.WriteValue(prefix + ".Color", Color);
            }
            if (c == null || c.Blend != Blend)
            {
                writer.WriteFloat(prefix + ".Blend", Blend);
            }
            if (c == null || c.Hatch != Hatch)
            {
                writer.WriteBool(prefix + ".Hatch", Hatch);
            }
        }
Пример #2
0
        /// <inheritdoc/>
        public override bool Equals(object obj)
        {
            GlassFill f = obj as GlassFill;

            return(f != null && Color == f.Color && Blend == f.Blend && Hatch == f.Hatch);
        }