コード例 #1
0
ファイル: Principal.cs プロジェクト: pablopapes/loteria1026
 private void TmSegundaPantalla_Tick(object sender, EventArgs e)
 {
     OcultarTextosPrimerPantalla();
     this.BackgroundImage           = Properties.Resources._2;
     LblTextoNumerosAleatorios.Text = "Numeros Favoritos!! Para el Día " + DateTime.Today.Date.ToShortDateString();
     GenerarNumerosFavoritos();
     MostrarTextosNumAleatorios();
     TmSegundaPantalla.Stop();
     TmTerceraPantalla.Start();
 }
コード例 #2
0
ファイル: Principal.cs プロジェクト: pablopapes/loteria1026
        private void TmTerceraPantalla_Tick(object sender, EventArgs e)
        {
            OcultarTextosNumAleatorios();
            MostarTextosTerceraPantalla();
            LblGanador1.Location = new Point(44, 484);

            if (i < CantJuegos)
            {
                switch (ListaDeJuegos[i].Tipo)
                {
                case 1:
                    TextosTipo1();
                    this.BackgroundImage = Properties.Resources._3;
                    LogoJuego(ListaDeJuegos[i].Nombre.ToUpper());
                    if (ListaDeJuegos[i].Nombre.ToUpper() == "BRINCO")
                    {
                        LblUltimosGanadores.Text = "SUELDOS";
                    }
                    else
                    {
                        LblUltimosGanadores.Text = "Ultimos Ganadores";
                    }

                    LblNombre.Text = ListaDeJuegos[i].Nombre;
                    LblJuega.Text  = Convert.ToString(ListaDeJuegos[i].Fecha).Trim().Remove(10);
                    LblHora.Text   = Convert.ToString(ListaDeJuegos[i].HoraCierre).Trim().Remove(0, 10).Remove(6);
                    Double pozo = Convert.ToDouble(ListaDeJuegos[i].Pozo);
                    LblPozo.Text = "$" + pozo.ToString("N0", new NumberFormatInfo()
                    {
                        NumberGroupSizes     = new[] { 3 },
                        NumberGroupSeparator = ".",
                    });
                    TmGanador.Start();
                    LblBoletasLocas.Text           = "HAY BOLETAS 'LOCAS' - HAGA SU " + ListaDeJuegos[i].Nombre + " FIJO";
                    LblSorteosExtraordinarios.Text = "Ultimos Ganadores:";
                    LblPrecio.Text   = "Con solo $" + Convert.ToString(ListaDeJuegos[i].Precio) + " Puede cambiar tu vida!";
                    LblGanador1.Text = ListaDeJuegos[i].Ganadores;
                    break;

                case 2:
                    TmGanador.Stop();
                    TextosTipo2();
                    LogoJuego(ListaDeJuegos[i].Nombre.ToUpper());
                    this.BackgroundImage = Properties.Resources._4;
                    LblNombre.Text       = ListaDeJuegos[i].Nombre;
                    LblJuega2.Text       = Convert.ToString(ListaDeJuegos[i].Fecha).Trim().Remove(10);
                    Double pozo2 = Convert.ToDouble(ListaDeJuegos[i].Pozo);
                    lblPozo2.Text = "$" + pozo2.ToString("N0", new NumberFormatInfo()
                    {
                        NumberGroupSizes     = new[] { 3 },
                        NumberGroupSeparator = ".",
                    });
                    LblSorteosExtraordinarios.Text = "Sorteos Extraordinarios";
                    LblAciertos.Text = "Ganas con solo " + Convert.ToString(ListaDeJuegos[i].Aciertos) + " Aciertos";

                    break;
                }
                i++;
            }

            else
            {
                TmTerceraPantalla.Stop();
                ListaDeJuegos.Clear();
                PrimeraPantalla();
                i = 0;
            }
        }