Beispiel #1
0
        public void RemoveCommPort(CommPortConf port)
        {
            List <CommPortConf> newPorts = new List <CommPortConf>();

            foreach (var pItem in CommPorts)
            {
                if (pItem.PortName != port.PortName)
                {
                    newPorts.Add(pItem);
                }
            }
            CommPorts = newPorts;
        }
Beispiel #2
0
 public void AddCommPort(CommPortConf port)
 {
     CommPorts.Add(port);
 }