public EntryType(int EntryTypeID) : base() { _entryType = new Fpp.Data.EntryType(ModuleSettings); DataSet ds = _entryType.getEntryType(EntryTypeID); if (ds.Tables[0].Rows.Count > 0) { LoadFromRow(ds.Tables[0].Rows[0]); } }
public static List<EntryType> getAllEntryTypes() { String moduleSettings = ModuleConfig.GetSettings(); Fpp.Data.EntryType et = new Fpp.Data.EntryType(moduleSettings); List<EntryType> list = new List<EntryType>(); DataSet ds = et.getAllEntryTypes(); foreach (DataRow row in ds.Tables[0].Rows ) { list.Add(new EntryType(row)); } return list; }
public EntryType(DataRow row) : base() { _entryType = new Fpp.Data.EntryType(ModuleSettings); LoadFromRow(row); }
public EntryType() : base() { _entryType = new Fpp.Data.EntryType(ModuleSettings); }