private void btn_insert_Click(object sender, EventArgs e) { comboBoxItem item = cBox_data_for_insert.SelectedItem as comboBoxItem; if (tb_label_active) { tB_label.SelectedText = item.key; } else { tB_element.SelectedText = item.key; } }
private void btn_insert_Click(object sender, EventArgs e) { comboBoxItem item = cBox_data_for_insert.SelectedItem as comboBoxItem; tB_response.SelectedText = item.key; }