public void Print(IZebraCommand command) { Print(command.ToZebraInstruction()); }
public void Add(IZebraCommand zebraCommand) { zebraCommands.Add(zebraCommand); }
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); }