private void btnAdd_Click(object sender, EventArgs e) { frmUpdatePlanes agregarVentana = new frmUpdatePlanes(); agregarVentana.Text = "Agregar Plan"; agregarVentana.Show(); }
private void btnUpdate_Click(object sender, EventArgs e) { frmUpdatePlanes modificarVentana = new frmUpdatePlanes(); var plan = (Plan)dgvPlanes.CurrentRow.DataBoundItem; modificarVentana.InicializarFormulario(frmUpdatePlanes.FormMode.update, plan); modificarVentana.ShowDialog(); btnConsultar_Click(sender, e); }