Пример #1
0
        //Удаление повторов
        public PortList DelIns()
        {
            PortList newlist = new PortList();

            foreach (PortStatus port in this.GetPortList())
            {
                if (!newlist.FindPort(port.Port).GetPortList().Any(x => x.Link == port.Link))
                {
                    newlist.AddPort(port);
                }
            }
            return(newlist);
        }
Пример #2
0
 public PortList(PortList newlist)
 {
     this.portList = newlist.portList;
 }