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