public void SendMessage(PrintControlCommand command, byte n) { List<byte> result = GetCommandBytes(Convert.ToInt32(command)); result.Add(n); port.Write(result.ToArray(), 0, result.Count); }
public List<byte> CommandToByteList(PrintControlCommand cmd, byte n) { List<byte> result = new List<byte>(); result.AddRange(GetCommandBytes(Convert.ToInt32(cmd))); result.Add(n); return result; }
public void WriteCommand(PrintControlCommand command, byte n) { port.SendMessage(command, n); }
public List<byte> CommandToByteList(PrintControlCommand cmd) { return GetCommandBytes(Convert.ToInt32(cmd)); }