Exemple #1
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;
        }
Exemple #2
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();
        }
Exemple #3
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();
        }
Exemple #4
0
        /* Выполняем в конструкторе */
        private void GetStarted()
        {
            ptController  = new ProductTypesController(this);
            kcController  = new KeywordCategoryController(this);
            fscController = new FullSemCoreController(this);

            fscController.GetSemCoreAll();
            ptController.GetProductTypesAll();
            kcController.GetKeywordCategoriesAll();
            DrawKeywords();
            FillCB();
        }
        public KeywordCategoryView()
        {
            InitializeComponent();
            CurrentColumnCount = 0;

            kcController = new KeywordCategoryController(this);

            connection = DBData.GetDBConnection();

            kcController.GetKeywordCategoriesAll();
            Draw();
        }
Exemple #6
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());
        }
Exemple #7
0
        /* Конструктор */
        public SemCoreView()
        {
            InitializeComponent();
            CurrentColumnCount = 0;

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

            kcController.GetKeywordCategoriesAll();
            ptController.GetProductTypesAll();
            Fill_CB_ByKeywordCategories();
            Fill_CB_ByProductTypes();
        }
Exemple #8
0
        /* Конструктор */
        public SemCoreView(MainFormView _mf)
        {
            InitializeComponent();
            CurrentColumnCount = 0;

            mf = _mf;

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

            kcController.GetKeywordCategoriesAll();
            ptController.GetProductTypesAll();
            Fill_CB_ByKeywordCategories();
            Fill_CB_ByProductTypes();

            tb_Link.Text = mf.AmazonLink;
        }
        /* Конструктор */
        public KeywordCategoryView(SemCoreView _mf)
        {
            InitializeComponent();

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

            HardClose = false;

            connection         = DBData.GetDBConnection();
            controlSemCoreView = _mf;

            kcController.GetKeywordCategoriesJOINProductTypes();
            Draw();

            ptController.GetProductTypesAll();
            fill_cb_ProductTypes();
        }
Exemple #10
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();
        }
Exemple #11
0
        /* Конструктор */
        public SemCoreRebuildView()
        {
            InitializeComponent();
            connection           = DBData.GetDBConnection();
            lb_NewKeys.Text      = str_NewKeys;
            lb_UpdatedKeys.Text  = str_UpdatedKeys;
            lb_UploadedKeys.Text = str_UploadedKeys;

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

            kcController.GetKeywordCategoriesAll();
            ptController.GetProductTypesAll();

            Fill_CB_ByKeywordCategories();
            Fill_CB_ByProductTypes();

            GetKeywords();

            firstLoad = false;
        }