private void btnEliminar_Click(object sender, EventArgs e) { try { Alu.m_Dni = txtDni.Text; MessageBox.Show(Alu.EliminarRegistro(), "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information); Limpiar(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnEliminar_Click(object sender, EventArgs e) { Alu.Dni = txtDni.Text; MessageBox.Show(Alu.EliminarRegistro(), "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information); Limpiar(); }