Exemplo n.º 1
0
 /// <summary>
 /// 填充控件信息
 /// </summary>
 private void FillPreviewLabel()
 {
     Text     = PanelForm.GetShowStringValue();
     AutoSize = true;
     BringToFront();
     Tag = new TagInfo("text", PanelForm.GetShowStringValue());
 }
 /// <summary>
 /// 图片填充PictureBox
 /// </summary>
 /// <param name="exinfo"></param>
 public override void GeneratePictureBoxFillImage(ExportInfo exinfo = null)
 {
     if (String.IsNullOrEmpty(PanelForm.GetShowStringValue()))
     {
         MessageBox.Show(this, "条码内容不能为空!");
         return;
     }
     PicImage = GetBarCodeByZXingNet(PanelForm.GetShowStringValue(), PanelForm.GetWidthValue(), PanelForm.GetHeightValue());
     AddPictureBox(PicImage, new TagInfo("barcode", PanelForm.GetShowStringValue()));
 }