internal static SeriesOPMTitleCollection GetCollection(DataTable dataItems) { SeriesOPMTitleCollection listCollection = new SeriesOPMTitleCollection(); SeriesOPMTitle current = null; if (dataItems != null) { for (int i = 0; i < dataItems.Rows.Count; i++) { current = new SeriesOPMTitle(dataItems.Rows[i]); listCollection.Add(current); } } else { throw new Exception("You cannot create a SeriesOPMTitle collection from a null data table."); } return(listCollection); }
public SeriesOPMTitleCollection GetSeriesOPMTitles() { SeriesOPMTitleCollection childDataCollection = null; if (base.ValidateKeyField(this._seriesID)) { try { DataTable dt = ExecuteDataTable("spr_GetSeriesOPMTitleBySeriesID", this._seriesID); // fill collection list childDataCollection = SeriesOPMTitle.GetCollection(dt); } catch (Exception ex) { HandleException(ex); } } return(childDataCollection); }