Ejemplo n.º 1
0
    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-------");
    }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
        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();
        }