Пример #1
0
 public void Print(IZebraCommand command)
 {
     Print(command.ToZebraInstruction());
 }
Пример #2
0
 public void Add(IZebraCommand zebraCommand)
 {
     zebraCommands.Add(zebraCommand);
 }
Пример #3
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);
        }