private void btnCheckBarcode1D_Click(object sender, EventArgs e) { Logger.Trace("Check Barcode Type:{0} Text:{1}", ((BarcodeCreation.TYPE)comboBox1.SelectedIndex).ToString(), textBox1.Text); barcodegcode = ""; BarcodeCreation.Barcode b = new BarcodeCreation.Barcode(); barcodeImage = b.Encode((BarcodeCreation.TYPE)comboBox1.SelectedIndex, textBox1.Text);//, Color.Black, Color.White, 200, 100); if (b.GetError) { pictureBox1.Image = null; } else { pictureBox1.Image = barcodeImage; btnClipboardBarcode1D.Visible = true; } }
public void btnGenerateBarcode_Click(object sender, EventArgs e) { Logger.Trace("Generate Barcode Type:{0} Text:{1}", ((BarcodeCreation.TYPE)comboBox1.SelectedIndex).ToString(), textBox1.Text); barcodegcode = ""; BarcodeCreation.Barcode b = new BarcodeCreation.Barcode(); barcodeImage = b.Encode((BarcodeCreation.TYPE)comboBox1.SelectedIndex, textBox1.Text);//, Color.Black, Color.White, 200, 100); if (b.GetError) { pictureBox1.Image = null; } else { pictureBox1.Image = barcodeImage; generateGCode1D(b.EncodedValue, b.EncodedType.ToString(), 40, (double)nUDHeight1D.Value); btnClipboardBarcode1D.Visible = true; } }