Ejemplo n.º 1
0
        public static string GenerateCustom(GeneratedBarcodeType barcodeType, string format = null)
        {
            IBarcodeGenerator generator;

            switch (barcodeType)
            {
            case GeneratedBarcodeType.EAN8:
                generator = new BarcodeEAN8Generator();
                break;

            default:
                generator = new BarcodeEAN13Generator();
                break;
            }

            return(generator.GenerateCustom(format ?? BusinessDomain.AppConfiguration.CustomGeneratedBarcodeFormat));
        }
Ejemplo n.º 2
0
        public static string Generate(GeneratedBarcodeType barcodeType, string prefix = null)
        {
            IBarcodeGenerator generator;

            switch (barcodeType)
            {
            case GeneratedBarcodeType.EAN8:
                generator = new BarcodeEAN8Generator();
                break;

            default:
                generator = new BarcodeEAN13Generator();
                break;
            }

            return(generator.Generate(prefix ?? BusinessDomain.AppConfiguration.GeneratedBarcodePrefix));
        }
Ejemplo n.º 3
0
 public virtual void PrintBarcode(GeneratedBarcodeType type, string data, bool printText)
 {
     throw new NotSupportedException();
 }