Example #1
0
        /* Обновляемся после добавления категории */
        private void SemCoreRefresh()
        {
            if (NewCategorywasAdded)
            {
                kcController.GetKeywordCategoriesByProductId(GetProductTypeIdFromCB());
                fill_cb_KeywordCategory();

                NewCategorywasAdded = false;
                btn_Begin.Enabled   = false;
            }
        }
Example #2
0
        /* Конструктор */
        public SemCoreView(MainFormView _mf)
        {
            InitializeComponent();

            mf = _mf;

            scController  = new SemCoreController(this);
            kcController  = new KeywordCategoryController(this);
            ptController  = new ProductTypesController(this);
            scaController = new SemCoreArchiveController(this);
            mpController  = new MarketplaceController(this);


            NoProdType = false;
            NoKeyCat   = false;

            mpController.GetMarketplaces();
            Fill_CB_ByMarketplaces();
            ptController.GetProductTypesAll();
            Fill_CB_ByProductTypes();
            kcController.GetKeywordCategoriesByProductId(currentProductTypeId);
            Fill_CB_ByKeywordCategories();

            urlAmazon    = ConfigurationManager.AppSettings.Get("amzLink").ToString();
            tb_Link.Text = urlAmazon;
        }
Example #3
0
        /* Выполняем в конструкторе */
        private void GetStarted(string _categoryName, string _prodTypeName)
        {
            ptController  = new ProductTypesController(this);
            kcController  = new KeywordCategoryController(this);
            fscController = new FullSemCoreController(this);

            ptController.GetProductTypesAll();
            fill_cb_ProductTypes();
            kcController.GetKeywordCategoriesByProductId(GetProductTypeIdFromCB());
            fill_cb_KeywordCategory();
            fscController.GetSemCoreByProductAndCategory(GetProductTypeIdFromCB(), GetKeywordCategoryIdFromCB());

            for (int i = 0; i < cb_ProductType.Items.Count; i++)
            {
                if (cb_ProductType.Items[i].ToString().Equals(_prodTypeName))
                {
                    cb_ProductType.SelectedItem = cb_ProductType.Items[i];
                }
            }

            for (int i = 0; i < cb_KeywordCategory.Items.Count; i++)
            {
                if (cb_KeywordCategory.Items[i].ToString().Equals(_categoryName))
                {
                    cb_KeywordCategory.SelectedItem = cb_KeywordCategory.Items[i];
                }
            }

            ShowKeywords();
        }
Example #4
0
        /* Выполняем в конструкторе */
        private void GetStarted()
        {
            ptController  = new ProductTypesController(this);
            kcController  = new KeywordCategoryController(this);
            scaController = new SemCoreArchiveController(this);

            ptController.GetProductTypesAll();
            fill_cb_ProductTypes();
            kcController.GetKeywordCategoriesByProductId(GetProductTypeIdFromCB());
            fill_cb_KeywordCategory();
        }
Example #5
0
        /* Выполняем в конструкторе */
        private void GetStarted()
        {
            ptController  = new ProductTypesController(this);
            kcController  = new KeywordCategoryController(this);
            fscController = new FullSemCoreController(this);

            ptController.GetProductTypesAll();
            fill_cb_ProductTypes();
            kcController.GetKeywordCategoriesByProductId(GetProductTypeIdFromCB());
            fill_cb_KeywordCategory();
            fscController.GetSemCoreByProductAndCategory(GetProductTypeIdFromCB(), GetKeywordCategoryIdFromCB());
        }
Example #6
0
        /* Выполняем в конструкторе */
        private void GetStarted()
        {
            btn_Begin.Enabled       = false;
            btn_KeysAreDone.Enabled = false;
            btn_Begin.Enabled       = true;
            btn_KeysAreDone.Enabled = true;
            btn_Begin.Enabled       = false;
            btn_KeysAreDone.Enabled = false;

            ptController = new ProductTypesController(this);
            kcController = new KeywordCategoryController(this);
            scController = new SemCoreController(this);

            ptController.GetProductTypesAll();
            fill_cb_ProductTypes();
            kcController.GetKeywordCategoriesByProductId(GetProductTypeIdFromCB());
            fill_cb_KeywordCategory();
        }
Example #7
0
 public void RefreshKeywordCategories()
 {
     kcController.GetKeywordCategoriesByProductId(currentProductTypeId);
     Fill_CB_ByKeywordCategories();
 }
Example #8
0
 /* Перезаполняем cb_KeywordCategory после смены вида товара */
 private void RefreshData()
 {
     kcController.GetKeywordCategoriesByProductId(GetProductTypeIdFromCB());
     fill_cb_KeywordCategory();
 }