From 16ccb23b32184a7ae793fef6a6b1a52befb791d3 Mon Sep 17 00:00:00 2001 From: acn Date: Fri, 3 Jul 2026 11:05:10 +0200 Subject: [PATCH] Auch Drucker, die mit "EPSON" beginnen, automatisch erkennen --- BonNotiz/Main.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/BonNotiz/Main.cs b/BonNotiz/Main.cs index c53d9f0..e9379cf 100644 --- a/BonNotiz/Main.cs +++ b/BonNotiz/Main.cs @@ -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);