示例#1
0
        /// <inheritdoc/>
        public override void Assign(BarcodeBase source)
        {
            base.Assign(source);

            LinearBarcodeBase src = source as LinearBarcodeBase;

            WideBarRatio = src.WideBarRatio;
            CalcCheckSum = src.CalcCheckSum;
        }
示例#2
0
        internal override void Serialize(FRWriter writer, string prefix, BarcodeBase diff)
        {
            base.Serialize(writer, prefix, diff);
            LinearBarcodeBase c = diff as LinearBarcodeBase;

            if (c == null || WideBarRatio != c.WideBarRatio)
            {
                writer.WriteValue(prefix + "WideBarRatio", WideBarRatio);
            }
            if (c == null || CalcCheckSum != c.CalcCheckSum)
            {
                writer.WriteBool(prefix + "CalcCheckSum", CalcCheckSum);
            }
        }