コード例 #1
0
        private void LimpiarSeleccion()
        {
            lstTipoPrestamos.DataSource    = tpservicio.GetTipoPrestamo();
            lstTipoPrestamos.SelectedIndex = -1; // otra forma sería tener un item que sea value 0 o -1 y descripción --seleccione--

            txtTNA.Text   = string.Empty;
            txtLinea.Text = string.Empty;

            txtMonto.Text = string.Empty;
            txtPlazo.Text = string.Empty;

            txtCapital.Text = string.Empty;
            txtCuota.Text   = string.Empty;
            txtInteres.Text = string.Empty;

            txtTNA.Enabled   = false;
            txtLinea.Enabled = false;

            txtMonto.Enabled = false;
            txtPlazo.Enabled = false;

            txtCapital.Enabled = false;
            txtCuota.Enabled   = false;
            txtInteres.Enabled = false;
        }
コード例 #2
0
 private void Menu_Load(object sender, EventArgs e)
 {
     lstTipoPrestamos.DataSource = tpservicio.GetTipoPrestamo();
 }