public IDSSubLoop() { ID = ""; ParentID = ""; Code = ""; Name = ""; Phase = ""; SerialNumber = ""; Description = ""; IsNameInSubLoop = false; IsNameInFront = false; Equipments = new IDSEquipmentCollection(); }
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 IDSEquipmentCollection Copy() { IDSEquipmentCollection equipments = new IDSEquipmentCollection(); if (this.Count <= 0) { return(equipments); } else { foreach (IDSEquipment equipment in this) { equipments.Add(equipment.Copy()); } return(equipments); } }