Ejemplo n.º 1
0
 /// <summary>
 /// This method adds the Data object from the singly list to the array list of companies that is being worked
 /// @author Jose A.
 /// </summary>
 private void CompanyListAddRest(CookTime.REST_API_CompanyListModel.Head head)
 {
     if (head.Next != null)
     {
         CompanyList.Add(head.Data);
         CompanyListAdd(head.Next);
     }
     else
     {
         CompanyList.Add(head.Data);
         CompanyListReturn();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This method adds the data object to the used arraylist for companies
 /// @author Jose A.
 /// </summary>
 private void ListAddRest_C(CookTime.REST_API_CompanyListModel.Head head)
 {
     if (head.Next != null)
     {
         ObjectList.Add(head.Data);
         ListAdd_C(head.Next);
     }
     else
     {
         ObjectList.Add(head.Data);
         ListReturn();
     }
 }