EPSON in base class
This commit is contained in:
parent
0d18ab2651
commit
ceee567981
@ -27,7 +27,6 @@ public class BarcodeInstruction : BaseInstruction
|
||||
|
||||
public override List<byte[]> GetInstructions()
|
||||
{
|
||||
var e = new EPSON();
|
||||
var commands = new List<byte[]>();
|
||||
|
||||
// if (width != BarWidth.Default)
|
||||
|
@ -8,6 +8,8 @@ public abstract class BaseInstruction
|
||||
|
||||
public abstract List<byte[]> GetInstructions();
|
||||
|
||||
protected EPSON e = new EPSON();
|
||||
|
||||
protected byte[] alignmentCommand(Alignment alignment){
|
||||
var e = new EPSON();
|
||||
switch (alignment)
|
||||
|
@ -21,7 +21,6 @@ public class TextInstruction : BaseInstruction
|
||||
|
||||
public override List<byte[]> GetInstructions()
|
||||
{
|
||||
var e = new EPSON();
|
||||
var commands = new List<byte[]>();
|
||||
|
||||
commands.Add(alignmentCommand(alignment));
|
||||
@ -45,7 +44,6 @@ public class TextInstruction : BaseInstruction
|
||||
}
|
||||
|
||||
private List<byte[]> setStyles(){
|
||||
var e = new EPSON();
|
||||
var commands = new List<byte[]>();
|
||||
if (underline){
|
||||
commands.Add(e.SetStyles(PrintStyle.Underline));
|
||||
|
Loading…
Reference in New Issue
Block a user