예제 #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmRegistroCandidata nue = new frmRegistroCandidata();

            nue.ShowDialog();
            this.CargarCandidata();
        }
예제 #2
0
 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");
     }
 }