Exemplo n.º 1
0
        public GCInterfaceCollection Copy()
        {
            GCInterfaceCollection clone = new GCInterfaceCollection();

            foreach (GCInterface c in List)
            {
                clone.Add(c);
            }

            return(clone);
        }
Exemplo n.º 2
0
        private GCInterfaceCollection GetInterfaceList(DObjectCollection dlist, bool withStatus)
        {
            GCInterfaceCollection ilist = new GCInterfaceCollection();

            foreach (InterfaceRec r in dlist)
            {
                GCInterface i = new GCInterface(r);
                ilist.Add(i);

                if (withStatus)
                {
                    i.Status = ServiceControl.GetServiceStatus(i.InterfaceName);
                }
            }
            return(ilist);
        }