Ejemplo n.º 1
0
        private void gridTarjetas_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int i = e.RowIndex;

            if (i >= 0)
            {
                actual = getRow(i);
            }
        }
Ejemplo n.º 2
0
 private void cbxTipoPago_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbxTipoPago.Text != "Efectivo")
     {
         showTarjetas();
     }
     else
     {
         actual = null;
         hideTarjetas();
     }
 }
Ejemplo n.º 3
0
        private void showTarjetas()
        {
            List <Modelos.Tarjeta> tarjetas = DB_Ofertas.getTarjetasParaCliente(Session.getUser().getUsername());

            gridTarjetas.DataSource = tarjetas;
            if (tarjetas != null)
            {
                gridTarjetas.Rows[0].Selected = true;
                actual = getRow(0);
            }
            else
            {
                actual = null;
            }
        }