831ec37cda
Printed bill can no longer be changed, any changes voids the bill and prints a new one. Added option to Split Bill. Kot printed with right time. Numerous bug fixes.
20 lines
509 B
C#
20 lines
509 B
C#
using System;
|
|
|
|
namespace Tanshu.Accounts.Print
|
|
{
|
|
internal class ThermalPrinter
|
|
{
|
|
internal static PlatformPrinter Printer;
|
|
static ThermalPrinter()
|
|
{
|
|
Printer = RunningOnLinux() ? (PlatformPrinter)new PrinterLinux() : new PrinterWindows();
|
|
}
|
|
|
|
internal static bool RunningOnLinux()
|
|
{
|
|
var platform = (int)Environment.OSVersion.Platform;
|
|
return (platform == 4) || (platform == 6) || (platform == 128);
|
|
}
|
|
}
|
|
}
|