Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
 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);
     }
 }