示例#1
0
 private void CreateEan13( )
 {
     ean13                  = new Ean13( );
     ean13.CountryCode      = txtCountryCode.Text;
     ean13.ManufacturerCode = txtManufacturerCode.Text;
     ean13.ProductCode      = txtProductCode.Text;
     if (txtChecksumDigit.Text.Length > 0)
     {
         ean13.ChecksumDigit = txtChecksumDigit.Text;
     }
 }
示例#2
0
        private void Test()
        {
            ean13       = new Ean13("9780201734843");
            ean13.Scale = (float)Convert.ToDecimal(cboScale.Items[cboScale.SelectedIndex]);

            txtCountryCode.Text      = ean13.CountryCode;
            txtManufacturerCode.Text = ean13.ManufacturerCode;
            txtProductCode.Text      = ean13.ProductCode;
            txtChecksumDigit.Text    = ean13.ChecksumDigit;

            Bitmap bmp = ean13.CreateBitmap();

            this.picBarcode.Image = bmp;
        }