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