public void AddParts(DataSet dsData) { foreach (DataTable oTable in dsData.Tables) { PartBaseCollection cParts = null; cParts = GetParts(oTable.TableName); cParts.AddRecordsFromTable(oTable); } }
public PartBaseCollection GetParts(string sTableName) { if (this.Parts.Contains(sTableName)) { return(this.Parts(sTableName)); } else { PartBaseCollection cParts = new PartBaseCollection(sTableName); this.Parts.Add(cParts); return(cParts); } }