コード例 #1
0
        private ExBarCodeControl GetControl(String title, String content, String generator, double width, double height)
        {
            BarCodeConfig config = new BarCodeConfig()
            {
                Title     = title.Length == 0 ? content : title,
                Content   = content,
                Generator = generator.ToString(),
                Width     = width,
                Height    = height
            };

            return(new ExBarCodeControl(config));
        }
コード例 #2
0
 public ExBarCodeControl(BarCodeConfig config) : this()
 {
     this.Symbology = ObjectCreateAssistant.CreateObjectInstance <BarCodeGeneratorBase>(config.Generator);
     this.Config    = config;
     LoadComponent();
 }