private void BindCategories() { ITopClient client = GetProductTopClient(); SellerCatsGetRequest req = new SellerCatsGetRequest(); req.Nick = CurrentSellerNick; ResponseList <SellerCat> rsp = client.Execute(req, new SellerCatListJsonParser()); if (rsp.Content != null) { TreeNode node = tvCategory.FindNode("onsale"); List <SellerCat> currentList = GetCatListByParent(rsp.Content, "0"); foreach (SellerCat children in currentList) { AddCategory(rsp.Content, children, node); } } }
private void BindCategories() { ITopClient client = GetProductTopClient(); SellerCatsGetRequest req = new SellerCatsGetRequest(); req.Nick = CurrentSellerNick; ResponseList<SellerCat> rsp = client.Execute(req, new SellerCatListJsonParser()); if (rsp.Content != null) { TreeNode node = tvCategory.FindNode("onsale"); List<SellerCat> currentList = GetCatListByParent(rsp.Content, "0"); foreach (SellerCat children in currentList) { AddCategory(rsp.Content, children, node); } } }