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

            fscController.GetSemCoreAll();
            ptController.GetProductTypesAll();
            kcController.GetKeywordCategoriesAll();
            DrawKeywords();
            FillCB();
        }
Exemplo n.º 3
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());
        }