/*Boton para borrar una parte*/ private void btn_Borrar_Click(object sender, EventArgs e) { int pos = dgv_Entidad.CurrentRow.Index; string res = fa.eliminarEntidad(pos, entidades); if (res != null) { lbl_Cabecera.Text = res; } else { datosDataG(); } }
/*Boton para borrar una parte*/ private void btn_Borrar_Click(object sender, EventArgs e) { int pos = dgv_Entidad.CurrentRow.Index; if (entidades[pos].direccion_Dato != -1) { MessageBox.Show("Existen datos guardados, no se puede eliminar."); return; } string res = fa.eliminarEntidad(pos, entidades); if (res != null) { lbl_Cabecera.Text = res; } else { datosDataG(); } }