private void frmMantenimientoTipoPrestamo_Load(object sender, EventArgs e)
 {
     txtCodigo.Text = Convert.ToString(dato.getIdSiguiente());
     clsDatosTipoPrestamo fre = new clsDatosTipoPrestamo();
     if (accion == "M")
     {
         Set();
     }
     if (accion == "E")
     {
         Set();
     }
 }
 public void Cargar()
 {
     clsDatosTipoPrestamo prestamo = new clsDatosTipoPrestamo();
     gdcTipoPrestamo.DataSource = prestamo.consultaTipoPrestamo ();
 }