fully functional editor

This commit is contained in:
EugeneTes
2026-02-04 14:59:16 +01:00
parent 8cd04155db
commit 1fcaaa040b
6 changed files with 151 additions and 13 deletions

View File

@@ -7,6 +7,8 @@ public class TM_T30IIITranslated : IPrinter
{
private readonly IEpsonPrinter _printer;
public bool SkipDelays { get; set; }
public TM_T30IIITranslated(IEpsonPrinter printer)
{
_printer = printer;
@@ -22,7 +24,7 @@ public class TM_T30IIITranslated : IPrinter
await _printer.FeedLinesAsync(1);
await _printer.SetAbsolutePrintPosition(100);
await _printer.LoadImageAsync(path, 384);
await Task.Delay(100);
if (!SkipDelays) await Task.Delay(100);
if (_printer is HtmlPrinter)
{
await _printer.PrintLoadedImage();
@@ -65,12 +67,12 @@ public class TM_T30IIITranslated : IPrinter
await _printer.SetDefaultLineSpacing();
await _printer.FeedLinesAsync(10);
await Task.Delay(200);
if (!SkipDelays) await Task.Delay(200);
}
public async Task Cut()
{
await _printer.CutAsync();
await Task.Delay(200);
if (!SkipDelays) await Task.Delay(200);
}
}