/// <inheritdoc/> public override FormatBase Clone() { BooleanFormat result = new BooleanFormat(); result.FalseText = FalseText; result.TrueText = TrueText; return(result); }
internal override void Serialize(FRWriter writer, string prefix, FormatBase format) { base.Serialize(writer, prefix, format); BooleanFormat c = format as BooleanFormat; if (c == null || TrueText != c.TrueText) { writer.WriteStr(prefix + "TrueText", TrueText); } if (c == null || FalseText != c.FalseText) { writer.WriteStr(prefix + "FalseText", FalseText); } }
/// <inheritdoc/> public override bool Equals(object obj) { BooleanFormat f = obj as BooleanFormat; return(f != null && FalseText == f.FalseText && TrueText == f.TrueText); }