private void btn_ver_editar_Click(object sender, EventArgs e) { if (dgv_socios.CurrentRow != null) { int id = Convert.ToInt32(dgv_socios.CurrentRow.Cells["col_nro"].Value.ToString()); DTO_Socio dto = svSocio.getSocio(id); if (dto != null) { Form editarVer = new frm_editar_socio(dto, this); editarVer.ShowDialog(); } else { MessageBox.Show("Error al cargar los datos del socio", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("No selecciono ningun socio", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frm_foto(frm_editar_socio form) { InitializeComponent(); this.frm_editar = form; }