private static void SendToPrinter(LinePrinter printer, ILineFormatter line) { var data = line.GetFormattedLine(); if (!data.StartsWith("<")) printer.WriteLine(data, line.FontHeight, line.FontWidth, LineAlignment.Left); else if (line.Tag.TagName == "eb") printer.EnableBold(); else if (line.Tag.TagName == "db") printer.DisableBold(); else if (line.Tag.TagName == "ec") printer.EnableCenter(); else if (line.Tag.TagName == "el") printer.EnableLeft(); else if (line.Tag.TagName == "er") printer.EnableRight(); else if (line.Tag.TagName == "bmp") printer.PrintBitmap(RemoveTag(data)); else if (line.Tag.TagName == "qr") printer.PrintQrCode(RemoveTag(data), line.FontHeight, line.FontWidth); else if (line.Tag.TagName == "bar") printer.PrintBarCode(RemoveTag(data), line.FontHeight, line.FontWidth); else if (line.Tag.TagName == "cut") printer.Cut(); else if (line.Tag.TagName == "beep") printer.Beep(); else if (line.Tag.TagName == "drawer") printer.OpenCashDrawer(); else if (line.Tag.TagName == "b") printer.Beep((char)line.FontHeight, (char)line.FontWidth); else if (line.Tag.TagName == ("xct")) printer.ExecCommand(RemoveTag(data)); }
public LineCache(LineIndex line_index, ILineFormatter formatter, IReport report) { m_cache = new ILine[1000]; m_line_buf = new byte[512]; m_report = report; LineIndex = line_index; Formatter = formatter; }
private static void SendToPrinter(LinePrinter printer, ILineFormatter line) { var data = line.GetFormattedLine(); if (!data.StartsWith("<")) { printer.WriteLine(data, line.FontHeight, line.FontWidth, LineAlignment.Left); } else if (line.Tag.TagName == "eb") { printer.EnableBold(); } else if (line.Tag.TagName == ("db")) { printer.DisableBold(); } else if (line.Tag.TagName == "bmp") { printer.PrintBitmap(RemoveTag(data)); } else if (line.Tag.TagName == "qr") { printer.PrintQrCode(RemoveTag(data)); } else if (line.Tag.TagName == "bar") { printer.PrintBarCode(RemoveTag(data), line.FontHeight, line.FontWidth); } else if (line.Tag.TagName == "cut") { printer.Cut(); } else if (line.Tag.TagName == "beep") { printer.Beep(); } else if (line.Tag.TagName == "drawer") { printer.OpenCashDrawer(); } else if (line.Tag.TagName == "b") { printer.Beep((char)line.FontHeight, (char)line.FontWidth); } else if (line.Tag.TagName == ("xct")) { printer.ExecCommand(RemoveTag(data)); } }
public HourConverter(ILineFormatter lineFormatter) : base(lineFormatter) { }
public MinuteConverter(ILineFormatter lineFormatter) : base(lineFormatter) { }
public SecondConverter(ILineFormatter lineFormatter) : base(lineFormatter) { }
protected TimePartConverterBase(ILineFormatter lineFormatter) { LineFormatter = lineFormatter; }