Exemple #1
0
 private SortableBindingList<CswRecord> CswObjectsToSortableBindingList(CswObjects cswObjs)
 {
         SortableBindingList<CswRecord> csws = new SortableBindingList<CswRecord>();
         for (int i = 0; i < cswObjs.Count; i++)
         {
             csws.Add((CswRecord)cswObjs[i]);
         }
         return csws;
 }
Exemple #2
0
 /// <summary>
 /// convert cswobjects to arraylist 
 /// </summary>
 /// <remarks>
 /// will phase out once CswObjects implements IList interface.
 /// </remarks>
 /// <param name="cswObjs">CSWObjects to be converted</param>
 /// <returns>ArrayList that contains a list of CSW objects.</returns>
 private ArrayList CswObjectsToArrayList(CswObjects cswObjs)
 {
     ArrayList alCswObjects = new ArrayList();
     for (int i = 0; i < cswObjs.Count; i++)
     {
         alCswObjects.Add(cswObjs[i]);
     }
     return alCswObjects;
 }