Esempio n. 1
0
        public EscogerSaludos()
        {
            WindowState = FormWindowState.Maximized;
            InitializeComponent();
            fallos   = 0;
            contador = 0;
            play     = false;
            sonidos  = new controlSonidos();


            timeGreetings      = new List <string>();
            formalGreetings    = new List <string>();
            informalGreetings  = new List <string>();
            rformalGreetings   = new List <string>();
            rinformalGreetings = new List <string>();
            byeGreetings       = new List <string>();
            frasesYsonidos     = new Dictionary <string, SoundPlayer>();
            respuestas         = new Dictionary <int, List <String> >();
            mensaje            = new Mensaje();

            timeGreetings.Add("Good Afternoon");
            timeGreetings.Add("Good Morning");
            timeGreetings.Add("Good Night");
            timeGreetings.Add("Good Evening");
            formalGreetings.Add("Hello, how are you?");
            formalGreetings.Add("Hello! Ms Richards/Mr Richards");
            rformalGreetings.Add("Fine thank you. And you?");
            rformalGreetings.Add("Very well, thank you. And you?");
            informalGreetings.Add("Hi, how are you?");
            informalGreetings.Add("Hi, how is it going?");
            informalGreetings.Add("Hey , what's new?");
            informalGreetings.Add("Hi there, What's up?");
            rinformalGreetings.Add("Hi, I am good. How are you?");
            rinformalGreetings.Add("Hi! , great. And you?");
            rinformalGreetings.Add("I am doing all right. And you?");
            byeGreetings.Add("Bye");
            byeGreetings.Add("See you later");

            frasesYsonidos.Add("Good Afternoon", new SoundPlayer(Properties.Resources.goodafternoon));
            frasesYsonidos.Add("Good Morning", new SoundPlayer(Properties.Resources.goodmorning));
            frasesYsonidos.Add("Good Night", new SoundPlayer(Properties.Resources.goodnight));
            frasesYsonidos.Add("Good Evening", new SoundPlayer(Properties.Resources.goodevening));
            frasesYsonidos.Add("Hello, how are you?", new SoundPlayer(Properties.Resources.Hello_howareyou));
            frasesYsonidos.Add("Hello! Ms Richards/Mr Richards", new SoundPlayer(Properties.Resources.hello));
            frasesYsonidos.Add("Fine thank you. And you?", new SoundPlayer(Properties.Resources.finethankyouandyou));
            frasesYsonidos.Add("Very well, thank you. And you?", new SoundPlayer(Properties.Resources.vwerywell_thankyou));
            frasesYsonidos.Add("Hi, how are you?", new SoundPlayer(Properties.Resources.hihowareyou));
            frasesYsonidos.Add("Hi, how is it going?", new SoundPlayer(Properties.Resources.hi_howisitgoing));
            frasesYsonidos.Add("Hey , what's new?", new SoundPlayer(Properties.Resources.heywhatsnew));
            frasesYsonidos.Add("Hi there, What's up?", new SoundPlayer(Properties.Resources.Hitherewhatsup));
            frasesYsonidos.Add("Hi, I am good.How are you? ", new SoundPlayer(Properties.Resources.hiimgooghowareyou));
            frasesYsonidos.Add("Hi! , great. And you?", new SoundPlayer(Properties.Resources.higreatandyou));
            frasesYsonidos.Add("I am doing all right. And you?", new SoundPlayer(Properties.Resources.imdoingallrightandyou));
            frasesYsonidos.Add("Bye", new SoundPlayer(Properties.Resources.bye));
            frasesYsonidos.Add("See you later", new SoundPlayer(Properties.Resources.seeyoulater));



            respuestas.Add(0, timeGreetings);
            respuestas.Add(1, timeGreetings);
            respuestas.Add(2, timeGreetings);
            respuestas.Add(3, timeGreetings);
            respuestas.Add(4, timeGreetings);
            respuestas.Add(5, formalGreetings);
            respuestas.Add(6, formalGreetings);
            respuestas.Add(7, formalGreetings);
            respuestas.Add(8, formalGreetings);
            respuestas.Add(9, formalGreetings);
            respuestas.Add(10, informalGreetings);
            respuestas.Add(11, informalGreetings);
            respuestas.Add(12, informalGreetings);
            respuestas.Add(13, informalGreetings);
            respuestas.Add(14, rinformalGreetings);
            respuestas.Add(15, rformalGreetings);
            respuestas.Add(16, rinformalGreetings);
            respuestas.Add(17, rinformalGreetings);
            respuestas.Add(18, byeGreetings);
            respuestas.Add(19, byeGreetings);
        }
Esempio n. 2
0
 public MenuClassroom()
 {
     WindowState = FormWindowState.Maximized;
     InitializeComponent();
     mensaje = new Mensaje();
 }
Esempio n. 3
0
        public classroom2()
        {
            WindowState = FormWindowState.Maximized;
            InitializeComponent();
            boxActual        = 0;
            rondas           = 1;
            imagenesYsonidos = new Dictionary <Bitmap, SoundPlayer>(); // de objetos
            imagenesUsadas   = new List <Bitmap>();
            imagenesObjetos  = new List <Bitmap>();
            parejas          = new Dictionary <PictureBox, SoundPlayer>();
            iAsignadas       = new List <int>();
            sAsignados       = new SortedList <int, SoundPlayer>();
            pboxList         = new List <PictureBox>();
            ordenpBox        = new List <int>();
            palabras         = new Dictionary <Bitmap, string>();
            mensaje          = new Mensaje();
            sonidos          = new controlSonidos();
            labelAnswer.Text = " ";

            Bitmap bs           = (Bitmap)Properties.Resources.blue_scissors_;
            Bitmap book         = (Bitmap)Properties.Resources.Book;
            Bitmap books        = (Bitmap)Properties.Resources.books;
            Bitmap pencil       = (Bitmap)Properties.Resources.pencil;
            Bitmap redbook      = (Bitmap)Properties.Resources.redbook;
            Bitmap glue         = (Bitmap)Properties.Resources.glue;
            Bitmap eraser       = (Bitmap)Properties.Resources.eraser;
            Bitmap sharp        = (Bitmap)Properties.Resources.sharpener;
            Bitmap colorpencils = (Bitmap)Properties.Resources.colorpencils;
            Bitmap backpack     = (Bitmap)Properties.Resources.backpack;
            Bitmap notebook     = (Bitmap)Properties.Resources.yellow_notebook;
            Bitmap pen          = (Bitmap)Properties.Resources.pen_silver;
            Bitmap rule         = (Bitmap)Properties.Resources.rule;
            Bitmap crayons      = (Bitmap)Properties.Resources.clipart_crayons_1862;

            pboxList.Add(pictureBoxon);
            pboxList.Add(pictureBoxondesk);
            pboxList.Add(pictureBoxnextto);
            pboxList.Add(pictureBoxbetween);
            pboxList.Add(pictureBoxinfrontofb);
            pboxList.Add(pictureBoxunder);
            pboxList.Add(pictureBbehind);



            imagenesObjetos.Add(bs);
            imagenesObjetos.Add(book);
            imagenesObjetos.Add(books);
            imagenesObjetos.Add(pencil);
            imagenesObjetos.Add(redbook);
            imagenesObjetos.Add(glue);
            imagenesObjetos.Add(eraser);
            imagenesObjetos.Add(sharp);
            imagenesObjetos.Add(colorpencils);
            imagenesObjetos.Add(backpack);
            imagenesObjetos.Add(pen);
            imagenesObjetos.Add(notebook);
            imagenesObjetos.Add(rule);
            imagenesObjetos.Add(crayons);

            SoundPlayer onthedeskaudio    = new SoundPlayer(Properties.Resources.on_the_desk_audio);
            SoundPlayer onthetableaudio   = new SoundPlayer(Properties.Resources.on_the_table_audio);
            SoundPlayer nexttoaudio       = new SoundPlayer(Properties.Resources.next_to_the_desk_audio);
            SoundPlayer betweenaudio      = new SoundPlayer(Properties.Resources.between_the_b_and_t_audio);
            SoundPlayer behindaudio       = new SoundPlayer(Properties.Resources.behind_the_chair_audio);
            SoundPlayer infrontofaudio    = new SoundPlayer(Properties.Resources.in_front_of_the_board_audio);
            SoundPlayer underaudio        = new SoundPlayer(Properties.Resources.under_the_table);
            SoundPlayer booksaudio        = new SoundPlayer(Properties.Resources.books_audio);
            SoundPlayer redbookaudio      = new SoundPlayer(Properties.Resources.red_book_audio);
            SoundPlayer colorpencilsaudio = new SoundPlayer(Properties.Resources.color_pencils_audio);
            SoundPlayer eraseraudio       = new SoundPlayer(Properties.Resources.eraser_audio);
            SoundPlayer scissorsaudio     = new SoundPlayer(Properties.Resources.scissors_audio);
            SoundPlayer sharpeneraudio    = new SoundPlayer(Properties.Resources.sharpener_audio);
            SoundPlayer pencilaudio       = new SoundPlayer(Properties.Resources.pencil_audio);
            SoundPlayer glueaudio         = new SoundPlayer(Properties.Resources.glue_audio);
            SoundPlayer bacpackaudio      = new SoundPlayer(Properties.Resources.backpack_audio);
            SoundPlayer penaudio          = new SoundPlayer(Properties.Resources.pen_audio);
            SoundPlayer notebookaudio     = new SoundPlayer(Properties.Resources.notebook_audio);
            SoundPlayer bookaudio         = new SoundPlayer(Properties.Resources.book_audio);
            SoundPlayer ruleaudio         = new SoundPlayer(Properties.Resources.rule_audio);
            SoundPlayer crayonsaudio      = new SoundPlayer(Properties.Resources.crayons_audio);


            //preposiciones

            parejas.Add(pictureBoxon, onthetableaudio);
            parejas.Add(pictureBoxondesk, onthedeskaudio);
            parejas.Add(pictureBoxnextto, nexttoaudio);
            parejas.Add(pictureBoxbetween, betweenaudio);
            parejas.Add(pictureBbehind, behindaudio);
            parejas.Add(pictureBoxunder, underaudio);
            parejas.Add(pictureBoxinfrontofb, infrontofaudio);

            imagenesYsonidos.Add(books, booksaudio);
            imagenesYsonidos.Add(bs, scissorsaudio);
            imagenesYsonidos.Add(book, bookaudio);
            imagenesYsonidos.Add(pencil, pencilaudio);
            imagenesYsonidos.Add(redbook, redbookaudio);
            imagenesYsonidos.Add(glue, glueaudio);
            imagenesYsonidos.Add(eraser, eraseraudio);
            imagenesYsonidos.Add(sharp, sharpeneraudio);
            imagenesYsonidos.Add(colorpencils, colorpencilsaudio);
            imagenesYsonidos.Add(backpack, bacpackaudio);
            imagenesYsonidos.Add(pen, penaudio);
            imagenesYsonidos.Add(notebook, notebookaudio);
            imagenesYsonidos.Add(rule, ruleaudio);
            imagenesYsonidos.Add(crayons, crayonsaudio);

            palabras.Add(books, "Books");
            palabras.Add(bs, "Scissors");
            palabras.Add(book, "Book");
            palabras.Add(pencil, "Pencil");
            palabras.Add(redbook, "Red book");
            palabras.Add(glue, "Glue");
            palabras.Add(eraser, "Eraser");
            palabras.Add(sharp, "Sharpener");
            palabras.Add(colorpencils, "Color pencils");
            palabras.Add(backpack, "Backpack");
            palabras.Add(pen, "Pen");
            palabras.Add(notebook, "Notebook");
            palabras.Add(rule, "Rule");
            palabras.Add(crayons, "Crayons");


            asignar();
        }