Esempio n. 1
0
        /* Добавить новую категорию ключей */
        private void btn_addKeywordCategory_Click(object sender, EventArgs e)
        {
            KeywordCategoryView keycat = new KeywordCategoryView(this);

            keycat.Show();
            this.Visible = false;
        }
Esempio n. 2
0
        private void btn_DoKeywordCategory_Click(object sender, EventArgs e)
        {
            KeywordCategoryView keycat = new KeywordCategoryView(this);

            if (!keycat.HardClose)
            {
                keycat.Show();
                this.Visible = false;
            }
        }
Esempio n. 3
0
        /* Вызываем из KeywordCategoryView */
        public FullSemCoreView(KeywordCategoryView _mf, string _categoryName, string _prodTypeName)
        {
            InitializeComponent();
            ControlKeywordCategoryView = _mf;
            scaController = new SemCoreArchiveController(this);

            NoProdType = false;
            NoKeyCat   = false;

            GetStarted(_categoryName, _prodTypeName);
            firstLaunch = false;
        }
Esempio n. 4
0
        /* Добавляем новую категорию */
        private void btn_AddCategory_Click(object sender, EventArgs e)
        {
            KeywordCategoryView kc = new KeywordCategoryView(this);

            if (kc.ShowDialog() == DialogResult.Cancel)
            {
                if (NewCategorywasAdded)
                {
                    kcController.GetKeywordCategoriesAll();

                    Fill_CB_ByKeywordCategories();

                    cb_KeywordCategory.SelectedItem = cb_KeywordCategory.Items[cb_KeywordCategory.Items.Count - 1];
                }
            }
        }
 /* Конструктор */
 public KeywordCategoryController(KeywordCategoryView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlFormKeywordCategoryView = _controlForm;
 }
Esempio n. 6
0
 /* Конструктор */
 public ProductTypesController(KeywordCategoryView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlKeywordCategoryView = _controlForm;
 }