fully functional editor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user