public void actualizar() { txtpote.Text = Convert.ToString(ldatos.getPote()); txtcartones.Text = Convert.ToString(ldatos.getCartones()); txtganancias.Text = Convert.ToString(ldatos.getGanancias()); txtloterias.Text = Convert.ToString(ldatos.getJuegosloteria()); txtbingos.Text = Convert.ToString(ldatos.getJuegosbingo()); txttotalL.Text = Convert.ToString(ldatos.getTotalrepartidoL()); txttotalB.Text = Convert.ToString(ldatos.getTotalrepartidoB()); txtpote.ReadOnly = true; txtcartones.ReadOnly = true; txtganancias.ReadOnly = true; txtloterias.ReadOnly = true; txtbingos.ReadOnly = true; txttotalL.ReadOnly = true; txttotalB.ReadOnly = true; if (ldatos.getCartones() == 0) { btnbingo.Enabled = false; btnloteria.Enabled = false; } else { btnbingo.Enabled = true; btnloteria.Enabled = true; } }
public void limpiar() { txtbuscar.ReadOnly = false; txtserial.ReadOnly = true; txt1.ReadOnly = true; txt2.ReadOnly = true; txt3.ReadOnly = true; txt4.ReadOnly = true; txt5.ReadOnly = true; txt6.ReadOnly = true; txtbuscar.Text = ""; txtserial.Text = ""; txt1.Text = ""; txt2.Text = ""; txt3.Text = ""; txt4.Text = ""; txt5.Text = ""; txt6.Text = ""; if (ldatos.getCartones() > 0) { btnbuscar.Enabled = true; } else { btnbuscar.Enabled = false; } btngenerar.Enabled = true; btnregistrar.Enabled = false; btncancelar.Enabled = true; }