public SerialConnection(String portName, bool useVisualizer) { if (useVisualizer) { visualizer = new SendVisualizer(); visualizer.Show(); } this.portName = portName; }