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)); }
public ExBarCodeControl(BarCodeConfig config) : this() { this.Symbology = ObjectCreateAssistant.CreateObjectInstance <BarCodeGeneratorBase>(config.Generator); this.Config = config; LoadComponent(); }