/// <summary>
 /// Change the connection method of the KL2500LEDThreadedComPort.
 /// </summary>
 /// <param name="portName">The port to connect to in format 'COM#'</param>
 public void ChangeMode(string portName)
 {
     ConnectionParameters.CopyFrom(KL2500LEDComPort.ComParameters());
     base.ChangeMode(ConnectionMode.SelectionRule, port => port.Port == portName);
 }
 /// <summary>
 /// Create a KL2500LEDThreadedComPort for a KL2500LED unit. This port type should be used when the unit connection
 /// state is unknown. Functions are provided to be notified of connections and status changes. When using
 /// a static configuration, consider using the KL2500LEDComPort classes instead.
 /// </summary>
 /// <param name="threadName">Name of the thread.</param>
 /// <param name="closingWorker">The ClosingWorker to add this thread too</param>
 /// <param name="portName">The port to connect to in format 'COM#'</param>
 public KL2500LEDThreadedComPort(string threadName, ClosingWorker closingWorker, string portName)
     : base(threadName, closingWorker, KL2500LEDComPort.ComParameters(), ConnectionMode.SelectionRule, port => port.Port == portName)
 {
 }
 /// <summary>
 /// Change the connection method of the KL2500LEDThreadedComPort to select any KL2500LED.
 /// </summary>
 public void ChangeMode()
 {
     ConnectionParameters.CopyFrom(KL2500LEDComPort.ComParameters());
     base.ChangeMode(ConnectionMode.AnyCom);
 }
 /// <summary>
 /// Create a KL2500LEDThreadedComPort for a KL2500LED unit. This port type should be used when the unit connection
 /// state is unknown. Functions are provided to be notified of connections and status changes. When using
 /// a static configuration, consider using the KL2500LEDComPort classes instead.
 /// </summary>
 /// <param name="threadName">Name of the thread.</param>
 /// <param name="closingWorker">The ClosingWorker to add this thread too</param>
 public KL2500LEDThreadedComPort(string threadName, ClosingWorker closingWorker)
     : base(threadName, closingWorker, KL2500LEDComPort.ComParameters(), ConnectionMode.AnyCom)
 {
 }