示例#1
0
 public void Print(IZebraCommand command)
 {
     Print(command.ToZebraInstruction());
 }
示例#2
0
        private void Print(IZebraCommand command)
        {
            string zebraInstructions = command.ToZebraInstruction();
            var PrinterName = System.Configuration.ConfigurationManager.AppSettings["PrinterName"];
            if (string.IsNullOrEmpty(PrinterName))
                PrinterName = DefaultPrinterName();

            new ZebraPrinter(PrinterName).Print(zebraInstructions);
        }