Esempio n. 1
0
        public IDSSubLoop()
        {
            ID              = "";
            ParentID        = "";
            Code            = "";
            Name            = "";
            Phase           = "";
            SerialNumber    = "";
            Description     = "";
            IsNameInSubLoop = false;
            IsNameInFront   = false;

            Equipments = new IDSEquipmentCollection();
        }
Esempio n. 2
0
        public IDSSubLoop(IDSLoop loop)
        {
            ID              = "";
            ParentID        = "";
            _loop           = loop;
            Code            = "";
            Name            = "";
            Phase           = "";
            SerialNumber    = "";
            Description     = "";
            IsNameInSubLoop = false;
            IsNameInFront   = false;

            Equipments        = new IDSEquipmentCollection();
            EquipingLocations = new IDSEquipingLocationCollection();
            IOSignals         = new IDSIOSignalCollection();
        }
Esempio n. 3
0
        /// <summary>
        /// Deep Clone
        /// </summary>
        /// <returns></returns>
        public IDSEquipmentCollection Copy()
        {
            IDSEquipmentCollection equipments = new IDSEquipmentCollection();

            if (this.Count <= 0)
            {
                return(equipments);
            }
            else
            {
                foreach (IDSEquipment equipment in this)
                {
                    equipments.Add(equipment.Copy());
                }
                return(equipments);
            }
        }