예제 #1
0
 private ReferenceTypeCollection PopulateReferenceTypeCollection(DataTable dt)
 {
     ReferenceTypeCollection lReturn = null;
     if (dt != null)
     {
         lReturn = new ReferenceTypeCollection();
         foreach (DataRow dr in dt.Rows)
         {
             ReferenceType referenceType = new ReferenceType();
             referenceType.Code = dr["CODE"].ToString();
             referenceType.Description = dr["DESCRIPT"].ToString();
             lReturn.Add(referenceType);
         }
     }
     return lReturn;
 }
예제 #2
0
 public static void Init(ReferenceTypeCollection childDataTypes)
 {
     ReferenceTypeConverter.referenceDataTypes = childDataTypes;
 }