Esempio n. 1
0
        protected override string GetEncoding(string value)
        {
            if (string.IsNullOrEmpty(value))
            {
                return(string.Empty);
            }
            if (this.Checksum)
            {
                value += (string)(object)Postnet.GetChecksum(value);
            }
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append(Symbology1D.BarChar);
            for (int index = 0; index < value.Length; ++index)
            {
                stringBuilder.Append(Postnet.Encoding[value[index]]);
            }
            stringBuilder.Append(Symbology1D.BarChar);
            return(stringBuilder.ToString());
        }
Esempio n. 2
0
 private static char GetChecksum(string value)
 {
     return(Postnet.GetChecksum(value, 10));
 }