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(); }
/// <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); } }