private void button3_Click(object sender, EventArgs e) { if (buscarWasClicked) { ModProv ventanaModificacion = new ModProv(null, datosFilaProveedor); ventanaModificacion.Show(); } else { MessageBox.Show("Seleccione un proveedor"); } }
private void button1_Click(object sender, EventArgs e) { { using (ModProv ventanaModificacion = new ModProv(null, null)) { if (ventanaModificacion.ShowDialog() == DialogResult.OK) { generarBusqueda(); } } } }