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