private void btnAgregar_Click(object sender, EventArgs e) { frmRegistroCandidata nue = new frmRegistroCandidata(); nue.ShowDialog(); this.CargarCandidata(); }
private void btnModificar_Click(object sender, EventArgs e) { if (grdDatos.SelectedCells.Count > 0) { idCon = Convert.ToInt32(this.grdDatos.CurrentRow.Cells["pkCandidata"].Value); frmRegistroCandidata f = new frmRegistroCandidata(this); f.ShowDialog(); } else { MessageBox.Show("No hay elementos"); } }