Auch Drucker, die mit "EPSON" beginnen, automatisch erkennen

This commit is contained in:
2026-07-03 11:05:10 +02:00
parent 1781a93e09
commit 16ccb23b32
+1 -9
View File
@@ -22,7 +22,7 @@ namespace BonNotiz
foreach (String p in PrinterSelect.Items)
{
if (p.StartsWith("Epson"))
if (p.StartsWith("Epson") || p.StartsWith("EPSON"))
{
PrinterSelect.SelectedItem = p;
}
@@ -31,14 +31,6 @@ namespace BonNotiz
static void Drucken(String bondrucker, String text)
{
/* EscPosPrinter pos = new();
pos.Write(text);
pos.WriteLine();
pos.WriteLine();
pos.CutPaper(true);
Byte[] buf = pos.GetCurrentBuffer(); */
MarkdownToEscPos md = new();
Byte[] buf = md.Render(text);