public void FillSubCategoryDetail() { SubCatDetails subCatDetails = DownloadController.Instance.subCatDetails; int count = subCatDetails.SubCategory.Count; for (int i = 0; i < count; i++) { SubCatUIItem item = new SubCatUIItem(); item.ItemName = subCatDetails.SubCategory[i].ItemName; item.Icon = subCatDetails.SubCategory[i].icon; item.ModelCat = subCatDetails.SubCategory[i].catName; if (!subCatUIItemList.CheckAlreadyExist(item.ItemName)) { subCatUIItemList.subCatList.Add(item); } } Debug.Log("FillSubCategoryDetail-------"); }
public static SubCatDetails[] FetchSubCatNames(string catId) { DataTable subCatgDt = new DataTable(); budhashop.CLASS.CallCache callCache = new budhashop.CLASS.CallCache(); DataSet allDataDS = callCache.getCache(); subCatgDt = allDataDS.Tables[4]; List <SubCatDetails> details = new List <SubCatDetails>(); foreach (DataRow dtrow in subCatgDt.Rows) { SubCatDetails user = new SubCatDetails(); user.SubCatId = dtrow["SubCatId"].ToString(); user.SubCatName = dtrow["SubCatName"].ToString(); string catgId = dtrow["CategoryId"].ToString(); if (catgId == catId) { details.Add(user); } } return(details.ToArray()); }
public static SubCatDetails[] FetchSubCatNames(string catId) { DataTable subCatgDt = new DataTable(); budhashop.CLASS.CallCache callCache = new budhashop.CLASS.CallCache(); DataSet allDataDS = callCache.getCache(); subCatgDt = allDataDS.Tables[4]; List<SubCatDetails> details = new List<SubCatDetails>(); foreach (DataRow dtrow in subCatgDt.Rows) { SubCatDetails user = new SubCatDetails(); user.SubCatId = dtrow["SubCatId"].ToString(); user.SubCatName = dtrow["SubCatName"].ToString(); string catgId = dtrow["CategoryId"].ToString(); if (catgId == catId) details.Add(user); } return details.ToArray(); }