Exemplo n.º 1
0
 private void comboBoxOutputDevice_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         // try to close if it has opened a connection before
         serialPortManager.CloseConnection();
     }
     catch (Exception ex)
     {
         //Noproblem ^^
     }
     serialPortManager = new SerialPortConn(comboBoxOutputDevice.Text);
     serialPortManager.OpenConnection();
 }