Exemplo n.º 1
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer, string prefix, FillBase fill)
        {
            base.Serialize(writer, prefix, fill);
            PathGradientFill c = fill as PathGradientFill;

            if (c == null || c.CenterColor != CenterColor)
            {
                writer.WriteValue(prefix + ".CenterColor", CenterColor);
            }
            if (c == null || c.EdgeColor != EdgeColor)
            {
                writer.WriteValue(prefix + ".EdgeColor", EdgeColor);
            }
            if (c == null || c.Style != Style)
            {
                writer.WriteValue(prefix + ".Style", Style);
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public override bool Equals(object obj)
        {
            PathGradientFill f = obj as PathGradientFill;

            return(f != null && CenterColor == f.CenterColor && EdgeColor == f.EdgeColor && Style == f.Style);
        }