public UT60EMainController(IUserView view, List <UT60ESerialPortSettings> serial_port_settings, UT60ELogSettings log_settings) { this.log_settings = log_settings; this.serial_port_settings = serial_port_settings; data_controllers = new List <UT60EDataController>(serial_port_settings.Count); foreach (var port in serial_port_settings) { UT60EPacketReceiver package_receiver = new UT60EPacketReceiver(port.port_name); var display = view.Add(port); var data_controller = new UT60EDataController(port, package_receiver); display.Connect(data_controller); data_controllers.Add(data_controller); } if (log_settings != null) { InitialiseLogging(); } }