コード例 #1
0
 void IOutputPort.Send(OperateCommandBase command)
 {
     if (this.port != null && this.port.IsOpen)
     {
         this.port.Write(command.CommandBytes, 0, command.CommandBytes.Length);
     }
 }
コード例 #2
0
 public void Send(OperateCommandBase command)
 {
     Debug.Print($"{DateTime.Now.ToString("hh:mm:ss.fff")}");
     foreach (var item in command.CommandBytes)
     {
         Debug.Print(item.ToString());
     }
 }