/* Скопировать название категории по двойному ЛКМ на ячейку */ private void dgv_KeywordCategory_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { FullSemCoreView scv = new FullSemCoreView(this, dgv_KeywordCategory.Rows[e.RowIndex].Cells[1].Value.ToString(), dgv_KeywordCategory.Rows[e.RowIndex].Cells[4].Value.ToString()); scv.Show(); this.Visible = false; } }
/* Редактировать */ private void btn_Edit_Click(object sender, EventArgs e) { FullSemCoreView fsc = new FullSemCoreView(this, arr); if (fsc.ShowDialog() == DialogResult.OK) { this.DialogResult = DialogResult.OK; this.Close(); } }
private void btn_ShowAllKeywords_Click(object sender, EventArgs e) { FullSemCoreView fsc = new FullSemCoreView(this); if (!fsc.NoProdType && !fsc.NoKeyCat) { fsc.Show(); this.Visible = false; } }
/* Вызываем из FullSemCoreView */ public FullSemCoreView(FullSemCoreView _mf) { InitializeComponent(); ControlFullSemCoreView = _mf; scaController = new SemCoreArchiveController(this); NoProdType = false; NoKeyCat = false; GetStarted(); firstLaunch = false; }
/* Конструктор */ public ProductTypesController(FullSemCoreView _controlForm) { connection = DBData.GetDBConnection(); controlFormFullSemCoreView = _controlForm; }
/* Конструктор */ public KeywordCategoryController(FullSemCoreView _controlForm) { connection = DBData.GetDBConnection(); controlFormFullSemCoreView = _controlForm; }
public SemCoreArchiveController(FullSemCoreView _form) { connection = DBData.GetDBConnection(); controlFullSemCoreView = _form; }