/* Добавить новую категорию ключей */ private void btn_addKeywordCategory_Click(object sender, EventArgs e) { KeywordCategoryView keycat = new KeywordCategoryView(this); keycat.Show(); this.Visible = false; }
private void btn_DoKeywordCategory_Click(object sender, EventArgs e) { KeywordCategoryView keycat = new KeywordCategoryView(this); if (!keycat.HardClose) { keycat.Show(); this.Visible = false; } }
/* Вызываем из 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; }
/* Добавляем новую категорию */ 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; }
/* Конструктор */ public ProductTypesController(KeywordCategoryView _controlForm) { connection = DBData.GetDBConnection(); controlKeywordCategoryView = _controlForm; }