예제 #1
0
        /// <inheritdoc/>
        public override void Assign(Base source)
        {
            base.Assign(source);

            CheckBoxObject src = source as CheckBoxObject;

            Checked         = src.Checked;
            CheckedSymbol   = src.CheckedSymbol;
            UncheckedSymbol = src.UncheckedSymbol;
            CheckColor      = src.CheckColor;
            DataColumn      = src.DataColumn;
            Expression      = src.Expression;
            CheckWidthRatio = src.CheckWidthRatio;
            HideIfUnchecked = src.HideIfUnchecked;
        }
예제 #2
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            CheckBoxObject c = writer.DiffObject as CheckBoxObject;

            base.Serialize(writer);

            if (Checked != c.Checked)
            {
                writer.WriteBool("Checked", Checked);
            }
            if (CheckedSymbol != c.CheckedSymbol)
            {
                writer.WriteValue("CheckedSymbol", CheckedSymbol);
            }
            if (UncheckedSymbol != c.UncheckedSymbol)
            {
                writer.WriteValue("UncheckedSymbol", UncheckedSymbol);
            }
            if (CheckColor != c.CheckColor)
            {
                writer.WriteValue("CheckColor", CheckColor);
            }
            if (DataColumn != c.DataColumn)
            {
                writer.WriteStr("DataColumn", DataColumn);
            }
            if (Expression != c.Expression)
            {
                writer.WriteStr("Expression", Expression);
            }
            if (CheckWidthRatio != c.CheckWidthRatio)
            {
                writer.WriteFloat("CheckWidthRatio", CheckWidthRatio);
            }
            if (HideIfUnchecked != c.HideIfUnchecked)
            {
                writer.WriteBool("HideIfUnchecked", HideIfUnchecked);
            }
            if (Editable)
            {
                writer.WriteBool("Editable", Editable);
            }
        }