Пример #1
0
 private void SerialSend(SerialConnection conn, string command)
 {
     try{
         conn.WriteLine(command);
     } catch (System.NullReferenceException) {
         MessageBox.Show("Serial connection not established");
     }
 }
Пример #2
0
 public void SendCommand(string command)
 {
     Connection.WriteLine(command);
 }