Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            LogicaGo logica = new LogicaGo();

            lbFacturas.DataSource = logica.obtenerListaFacturas(txtDpFechaIni.Text, txtDpFechaFin.Text);
            if (lbFacturas.Items.Count > 0)
            {
                lbFacturas.SelectedIndex = 0;
            }
            lbFacturas.DisplayMember = "Nombre";
            lbFacturas.ValueMember   = "Id";
        }
Exemple #2
0
        public void cargarFacturas()
        {
            LogicaGo logica = new LogicaGo();

            lbFacturas.DataSource = logica.obtenerListaFacturas(txtFiltro.Text);
            if (lbFacturas.Items.Count > 0)
            {
                lbFacturas.SelectedIndex = 0;
            }
            lbFacturas.DisplayMember = "Nombre";
            lbFacturas.ValueMember   = "Id";
        }