コード例 #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;
        }
コード例 #2
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();
        }
コード例 #3
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;
        }
コード例 #4
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();
        }
コード例 #5
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;
        }