public void Connect(SerialPortViewModel serialPort) { if (serialPort == null) { throw new ArgumentNullException("serialPort"); } SerialPort = serialPort; _simulationForm = new SimulatedSerialPortForm { SerialPortDescription = string.Format("{0} (DtrEnable: {1})", serialPort.DisplayValue, serialPort.DtrEnable) }; _simulationForm.Show(); }