Ejemplo n.º 1
0
        void imgGlobo_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            Image img = sender as Image;

            if (img.Name == "imgUno")
            {
                if (boolUva)
                {
                    gano();
                }
                else
                {
                    Uno.Begin();
                    boolUno = true;
                }
            }
            else if (img.Name == "imgUva")
            {
                if (boolUno)
                {
                    gano();
                }
                else
                {
                    Uva.Begin();
                    boolUva = true;
                }
            }
            else
            {
            }
        }
Ejemplo n.º 2
0
        void timer_Tick(object sender, EventArgs e)
        {
            switch (contador)
            {
            case 0:
                recurso.reporducirSonido("/Sonidos/Voces/TocaComienzaU.mp3");
                break;

            case 1:
                break;

            case 2:
                break;

            case 3:
                recurso.reporducirSonido("/Sonidos/Voces/Helado.mp3");
                break;

            case 4:
                Helado.Begin();
                break;

            case 5:
                recurso.reporducirSonido("/Sonidos/Voces/Globo.mp3");
                break;

            case 6:
                globo.Begin();
                break;

            case 7:
                recurso.reporducirSonido("/Sonidos/Voces/Television.mp3");
                break;

            case 8:
                televisor.Begin();
                break;

            case 9:
                recurso.reporducirSonido("/Sonidos/Voces/uva.mp3");
                break;

            case 10:
                Uva.Begin();
                break;

            case 11:
                recurso.reporducirSonido("/Sonidos/Voces/Uno.mp3");
                break;

            case 12:
                Uno.Begin();

                break;

            case 13:
                timer.Stop();
                asignarEventos();
                break;
            }
            contador++;
        }