/// <summary> /// This method take the data and add it to the CompanyListView /// @author Jose A. /// </summary> private void ListAdd(CookTime.REST_API_RecipeListModel.Next next) { if (next.NextNext != null) { CompanyListView.Add(next.Data); ListAddRest(next.NextNext); } else { CompanyListView.Add(next.Data); ListReturn(); } }
/// <summary> /// This method adds the Data object from the singly list to the array list of recipes that is being worked /// @author Jose A. /// </summary> private void RecipeListAdd(CookTime.REST_API_RecipeListModel.Next next) { if (next.NextNext != null) { RecipeList.Add(next.Data); RecipeListAddRest(next.NextNext); } else { RecipeList.Add(next.Data); RecipeListReturn(); } }
/// <summary> /// This method adds the data object to the used arraylist for recipes /// @author Jose A. /// </summary> private void ListAdd_R(CookTime.REST_API_RecipeListModel.Next next) { if (next.NextNext != null) { ObjectList.Add(next.Data); ListAddRest_R(next.NextNext); } else { ObjectList.Add(next.Data); ListReturn(); } }