private void SerialSend(SerialConnection conn, string command) { try{ conn.WriteLine(command); } catch (System.NullReferenceException) { MessageBox.Show("Serial connection not established"); } }
public void SendCommand(string command) { Connection.WriteLine(command); }