internal static List <ISeriesFactorLevelLanguage> GetCollection(DataTable dataItems, enumFactorFormatType factorformattypeid) { List <ISeriesFactorLevelLanguage> listCollection = new List <ISeriesFactorLevelLanguage>(); ISeriesFactorLevelLanguage current = null; if (dataItems != null) { for (int i = 0; i < dataItems.Rows.Count; i++) { if (factorformattypeid == enumFactorFormatType.FES) { current = new SeriesFesFactorLevelLanguage(dataItems.Rows[i]); } else if (factorformattypeid == enumFactorFormatType.GSSG) { current = new SeriesGSSGFactorLevelLanguage(dataItems.Rows[i]); } listCollection.Add(current); } } else { throw new Exception("You cannot create a SeriesFactorLevelLanguage collection from a null data table."); } return(listCollection); }
internal static List <SeriesGSSGFactorLevelLanguage> GetCollection(DataTable dataItems) { List <SeriesGSSGFactorLevelLanguage> listCollection = new List <SeriesGSSGFactorLevelLanguage>(); SeriesGSSGFactorLevelLanguage current = null; if (dataItems != null) { for (int i = 0; i < dataItems.Rows.Count; i++) { current = new SeriesGSSGFactorLevelLanguage(dataItems.Rows[i]); listCollection.Add(current); } } else { throw new Exception("You cannot create a SeriesGSSGFactorLevelLanguage collection from a null data table."); } return(listCollection); }
//public SeriesFactorLevelLanguage(DataRow singleRowData) //{ // // Load Object by dataRow // try // { // this.FillObjectFromRowData(singleRowData); // } // catch (Exception ex) // { // HandleException(ex); // } //} public SeriesFactorLevelLanguage(int seriesid, int fesfactorlevelid, enumFactorFormatType factorformattypeid) { try { if (factorformattypeid == enumFactorFormatType.FES) { SeriesFesFactorLevelLanguage seriesfesfactorlevellanguage = new SeriesFesFactorLevelLanguage(seriesid, fesfactorlevelid); FillObject(seriesfesfactorlevellanguage, factorformattypeid); } else if (factorformattypeid == enumFactorFormatType.GSSG) { SeriesGSSGFactorLevelLanguage seriesgssgfactorlevellanguage = new SeriesGSSGFactorLevelLanguage(seriesid, fesfactorlevelid); FillObject(seriesgssgfactorlevellanguage, factorformattypeid); } } catch (Exception ex) { HandleException(ex); } }
/// <summary> /// Determines whether the specified System.Object is equal to the current object. /// </summary> /// <param name="obj">The System.Object to compare with the current object.</param> /// <returns>Returns true if the specified System.Object is equal to the current object; otherwise, false.</returns> public override bool Equals(Object obj) { SeriesGSSGFactorLevelLanguage SeriesGSSGFactorLevelLanguageobj = obj as SeriesGSSGFactorLevelLanguage; return((SeriesGSSGFactorLevelLanguageobj == null) ? false : ((this.SeriesID == SeriesGSSGFactorLevelLanguageobj.SeriesID) && (this.FactorLevelID == SeriesGSSGFactorLevelLanguageobj.FactorLevelID))); }