public static IDSSystemCollection CreateIDSSystems(DataRow[] rowSystems, DataTable tableLoop, DataTable tableHierarchy, DataTable tableEquipment, DataTable tableSubEquipment, DataTable tableRepositories, DataTable tableCable, DataTable tableMountingScheme) { if (rowSystems == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter rowSystems equals to null"); } IDSSystemCollection systems = new IDSSystemCollection(); if (rowSystems.Length <= 0) { return(systems); } foreach (DataRow rowSystem in rowSystems) { systems.Add(CreateIDSSystem(rowSystem, tableLoop, tableHierarchy, tableEquipment, tableSubEquipment, tableRepositories, tableCable, tableMountingScheme)); } return(systems); }
/// <summary> /// Deep Clone /// </summary> /// <returns></returns> public IDSSystemCollection Copy() { IDSSystemCollection systems = new IDSSystemCollection(); if (this.Count <= 0) { return(systems); } else { foreach (IDSSystem system in this) { systems.Add(system.Copy()); } return(systems); } }
public IDSFrame() { _systems = new IDSSystemCollection(); _repositoryCategories = new IDSRepositoryCategoryCollection(); }
public static IDSSystemCollection CreateIDSSystems(DataTable tableLoop, DataTable tableHierarchy, DataTable tableEquipment, DataTable tableSubEquipment, DataTable tableRepositories, DataTable tableCable, DataTable tableMountingScheme) { if (tableLoop == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableLoop equals to null"); } if (tableHierarchy == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableHierarchy equals to null"); } if (tableEquipment == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableEquipment equals to null"); } if (tableSubEquipment == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableSubEquipment equals to null"); } if (tableRepositories == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableRepositories equals to null"); } if (tableCable == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableCable equals to null"); } if (tableMountingScheme == null) { throw new System.ArgumentNullException("frome function CreateIDSSystems", "Parameter tableMountingScheme equals to null"); } IDSSystemCollection systems = new IDSSystemCollection(); if (tableHierarchy.Rows.Count <= 0) { return(systems); } foreach (DataRow rowSystem in tableHierarchy.Rows) { if (IDSEnumSystemType.System == Convert.ToString(rowSystem[TblIDSHierarchy.Type]).Trim()) { systems.Add(CreateIDSSystem(rowSystem, tableLoop, tableHierarchy, tableEquipment, tableSubEquipment, tableRepositories, tableCable, tableMountingScheme)); } } return(systems); }