Example #1
0
        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);
                }
            }
        }
Example #2
0
 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);
         }
     }
 }