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