示例#1
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();
        }
示例#2
0
        /// <summary>
        /// Deep Clone
        /// </summary>
        /// <returns></returns>
        public IDSEquipingLocationCollection Copy()
        {
            IDSEquipingLocationCollection equipingLocations = new IDSEquipingLocationCollection();

            if (this.Count <= 0)
            {
                return(equipingLocations);
            }
            else
            {
                foreach (IDSEquipingLocation equipingLocation in this)
                {
                    equipingLocations.Add(equipingLocation.Copy());
                }
                return(equipingLocations);
            }
        }