private void btnAgregar_Afiliado_Click(object sender, EventArgs e) { FrmAFILIADO FormAfiliado = new FrmAFILIADO(new MODELO.AFILIADO(), "A"); DialogResult dr = FormAfiliado.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }
private void btnConsultar_Afiliado_Click(object sender, EventArgs e) { if (dgvAFILIADOS.CurrentRow == null) { MessageBox.Show("Debe seleccionar a una afiliado"); return; } FrmAFILIADO FormAfiliado = new FrmAFILIADO(cAFILIADOS.Obtener_Afiliados(Convert.ToInt32(dgvAFILIADOS.CurrentRow.Cells[0].Value)), "C"); DialogResult dr = FormAfiliado.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }