Exemplo 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 CompanyListAdd(CookTime.REST_API_CompanyListModel.Next next)
 {
     if (next.NextNext != null)
     {
         CompanyList.Add(next.Data);
         CompanyListAddRest(next.NextNext);
     }
     else
     {
         CompanyList.Add(next.Data);
         CompanyListReturn();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// This method adds the data object to the used arraylist for companies
 /// @author Jose A.
 /// </summary>
 private void ListAdd_C(CookTime.REST_API_CompanyListModel.Next next)
 {
     if (next.NextNext != null)
     {
         ObjectList.Add(next.Data);
         ListAddRest_C(next.NextNext);
     }
     else
     {
         ObjectList.Add(next.Data);
         ListReturn();
     }
 }