public static List<ChargeSubTypes> getChargeSubTypes() { String moduleSettings = ModuleConfig.GetSettings(); Data.ChargeSubTypes st = new Data.ChargeSubTypes(moduleSettings); List<ChargeSubTypes> list = new List<ChargeSubTypes>(); DataSet ds = st.getChargeSubTypes(); foreach (DataRow row in ds.Tables[0].Rows) { list.Add(new ChargeSubTypes(row)); } return list; }
public ChargeSubTypes(DataRow row) : base() { _chargeSubTypes = new Data.ChargeSubTypes(ModuleSettings); try { LoadFromRow(row); } catch (Exception e) { AppException.LogEvent("ChargeSubTypes:" + e.Message); } }