private void textBoxFiltroCategoria_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode.ToString() == "F1") { FormSeleccionarCategoria nueva = new FormSeleccionarCategoria(this, idTarea, dataGridViewCategorias.SelectedRows[0].Cells[2].Value.ToString()); nueva.Show(); } }
private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Space) { if (idCategoria != null) { return; } FormSeleccionarCategoria nueva = new FormSeleccionarCategoria(this); nueva.Show(); } }
private void buttonServicio_Click(object sender, EventArgs e) { if (idBloque != null) { FormSeleccionarCategoria nueva = new FormSeleccionarCategoria(this); nueva.Show(); } else { FormSeleccionarCategoria nueva = new FormSeleccionarCategoria(this, idBloque); nueva.Show(); } }