private void bwReloadSecLockManufacturers_DoWork(object sender, DoWorkEventArgs e) { ClearTreeNodes(tvSecLockManufacturers); var manufacturers = new SecLockSpider().ReloadAllManufacturers(); for (int i = 0; i < manufacturers.Count(); i++) { var manufacturer = manufacturers[i]; TreeNode node = new TreeNode(); node.Tag = manufacturer.Code; node.Text = manufacturer.Name; AddTreeRootNode(tvSecLockManufacturers, node); } }
private void seclockManufacturerWorker_DoWork(object sender, DoWorkEventArgs e) { var manufacturers = new SecLockSpider().GetManufacturers(); for (int i = 0; i < manufacturers.Count(); i++) { var manufacturer = manufacturers[i]; TreeNode node = new TreeNode(); node.Tag = manufacturer.Code; node.Text = manufacturer.Name; //node.Nodes.Add("Loading"); AddTreeRootNode(tvSecLockManufacturers, node); } }
private void bwReloadSecLockCategories_DoWork(object sender, DoWorkEventArgs e) { ClearTreeNodes(tvSecLockCategories); var categories = new SecLockSpider().GetCategories(); for (int i = 0; i < categories.Count(); i++) { var category = categories[i]; if (category.Name.Trim().ToUpper() == "ALL CATEGORIES") continue; TreeNode tn = new TreeNode(); tn.Tag = category.Code; tn.Text = category.Name; AddTreeRootNode(tvSecLockCategories, tn); } }
private void SecLockCategoryWorker_DoWork(object sender, DoWorkEventArgs e) { var categories = new SecLockSpider().GetCategories(); for (int i = 0; i < categories.Count(); i++) { var category = categories[i]; TreeNode tn = new TreeNode(); tn.Tag = category.Code ; tn.Text = category.Name; //tvSecLockCategories.Nodes.Add(category.Code, category.Name); AddTreeRootNode(tvSecLockCategories, tn); //SecLockSpider.GetCategoryProducts(category); } }