Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmLevelSelect fls = new FrmLevelSelect();

            ActiveForm.Hide();
            fls.Show();
        }
Beispiel #2
0
        private void loadLogos()
        {
            do
            {
                quNumber = rand.Next(1, 17);
            }while (questions.Contains(quNumber));
            questions.Add(quNumber);

            switch (quNumber)
            {
            case 1:
                GboxFirefox.Visible    = true;
                GboxFirefox.Location   = new Point(226, 128);
                GboxFirefox.Size       = new Size(563, 317);
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxAllianz.Visible    = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 2:
                GboxWWF.Visible        = true;
                GboxWWF.Location       = new Point(208, 124);
                GboxWWF.Size           = new Size(589, 284);
                GboxFirefox.Visible    = false;
                GboxKFC.Visible        = false;
                GboxAllianz.Visible    = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 3:
                GboxAllianz.Visible    = true;
                GboxAllianz.Location   = new Point(173, 106);
                GboxAllianz.Size       = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 4:
                GboxWindows.Visible    = true;
                GboxWindows.Location   = new Point(204, 128);
                GboxWindows.Size       = new Size(597, 311);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxAllianz.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 5:
                GboxFarah.Visible      = true;
                GboxFarah.Location     = new Point(208, 137);
                GboxFarah.Size         = new Size(568, 294);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxAllianz.Visible    = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 6:
                GboxYoutube.Visible    = true;
                GboxYoutube.Location   = new Point(173, 106);
                GboxYoutube.Size       = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxAllianz.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 7:
                GboxNBC.Visible        = true;
                GboxNBC.Location       = new Point(241, 128);
                GboxNBC.Size           = new Size(553, 248);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxAllianz.Visible    = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 8:
                GboxDreamworks.Visible  = true;
                GboxDreamworks.Location = new Point(173, 106);
                GboxDreamworks.Size     = new Size(413, 245);
                GboxFirefox.Visible     = false;
                GboxWWF.Visible         = false;
                GboxKFC.Visible         = false;
                GboxWindows.Visible     = false;
                GboxFarah.Visible       = false;
                GboxYoutube.Visible     = false;
                GboxNBC.Visible         = false;
                GboxAllianz.Visible     = false;
                GboxConverse.Visible    = false;
                GboxUnilever.Visible    = false;
                GboxChanel.Visible      = false;
                GboxDisney.Visible      = false;
                GboxAdidas.Visible      = false;
                GboxChrome.Visible      = false;
                GboxPuma.Visible        = false;
                GboxDunlop.Visible      = false;
                break;

            case 9:
                GboxConverse.Visible   = true;
                GboxConverse.Location  = new Point(205, 139);
                GboxConverse.Size      = new Size(593, 313);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxAllianz.Visible    = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 10:
                GboxUnilever.Visible   = true;
                GboxUnilever.Location  = new Point(173, 106);
                GboxUnilever.Size      = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxAllianz.Visible    = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 11:
                GboxChanel.Visible     = true;
                GboxChanel.Location    = new Point(173, 106);
                GboxChanel.Size        = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxAllianz.Visible    = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 12:
                GboxDisney.Visible     = true;
                GboxDisney.Location    = new Point(173, 106);
                GboxDisney.Size        = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxAllianz.Visible    = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 13:
                GboxAdidas.Visible     = true;
                GboxAdidas.Location    = new Point(208, 139);
                GboxAdidas.Size        = new Size(581, 279);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAllianz.Visible    = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 14:
                GboxChrome.Visible     = true;
                GboxChrome.Location    = new Point(223, 128);
                GboxChrome.Size        = new Size(527, 304);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxAllianz.Visible    = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;

            case 15:
                GboxPuma.Visible       = true;
                GboxPuma.Location      = new Point(173, 106);
                GboxPuma.Size          = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxAllianz.Visible    = false;
                GboxDunlop.Visible     = false;
                break;

            case 16:
                GboxDunlop.Visible     = true;
                GboxDunlop.Location    = new Point(223, 128);
                GboxDunlop.Size        = new Size(571, 290);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxKFC.Visible        = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxAllianz.Visible    = false;
                break;

            case 17:
                GboxKFC.Visible        = true;
                GboxKFC.Location       = new Point(173, 106);
                GboxKFC.Size           = new Size(413, 245);
                GboxFirefox.Visible    = false;
                GboxWWF.Visible        = false;
                GboxAllianz.Visible    = false;
                GboxWindows.Visible    = false;
                GboxFarah.Visible      = false;
                GboxYoutube.Visible    = false;
                GboxNBC.Visible        = false;
                GboxDreamworks.Visible = false;
                GboxConverse.Visible   = false;
                GboxUnilever.Visible   = false;
                GboxChanel.Visible     = false;
                GboxDisney.Visible     = false;
                GboxAdidas.Visible     = false;
                GboxChrome.Visible     = false;
                GboxPuma.Visible       = false;
                GboxDunlop.Visible     = false;
                break;
            }
            if (quNumber == 10)
            {
                FrmLevelSelect fls = new FrmLevelSelect();
                ActiveForm.Hide();
                fls.Show();
            }
        }
Beispiel #3
0
        private void loadLogos()
        {
            quNumber++;
            do
            {
                quNumber = rand.Next(1, 13);
                hideAllGroupBoxes();
            }while (questions.Contains(quNumber));
            questions.Add(quNumber);


            switch (quNumber)
            {
            case 1:
                gBoxAstonMartin.Visible  = true;
                gBoxAstonMartin.Location = new Point(138, 105);
                gBoxAstonMartin.Size     = new Size(553, 219);
                break;

            case 2:
                gBoxBarclays.Visible  = true;
                gBoxBarclays.Location = new Point(138, 105);
                gBoxBarclays.Size     = new Size(553, 219);
                break;

            case 3:
                gBoxBlockBuster.Visible  = true;
                gBoxBlockBuster.Location = new Point(138, 105);
                gBoxBlockBuster.Size     = new Size(553, 219);
                break;

            case 4:
                gBoxCartoonNetwork.Visible  = true;
                gBoxCartoonNetwork.Location = new Point(138, 105);
                gBoxCartoonNetwork.Size     = new Size(553, 219);
                break;

            case 5:
                gBoxFila.Visible  = true;
                gBoxFila.Location = new Point(138, 105);
                gBoxFila.Size     = new Size(553, 219);
                break;

            case 6:
                gBoxHolidayInn.Visible  = true;
                gBoxHolidayInn.Location = new Point(138, 105);
                gBoxHolidayInn.Size     = new Size(553, 219);
                break;

            case 7:
                gBoxJohnDeere.Visible  = true;
                gBoxJohnDeere.Location = new Point(138, 105);
                gBoxJohnDeere.Size     = new Size(553, 219);
                break;

            case 8:
                gBoxLinkedIn.Visible  = true;
                gBoxLinkedIn.Location = new Point(138, 105);
                gBoxLinkedIn.Size     = new Size(553, 219);
                break;

            case 9:
                gBoxMorrisons.Visible  = true;
                gBoxMorrisons.Location = new Point(138, 105);
                gBoxMorrisons.Size     = new Size(553, 219);
                break;

            case 10:
                gBoxOpel.Visible  = true;
                gBoxOpel.Location = new Point(138, 105);
                gBoxOpel.Size     = new Size(553, 219);
                break;

            case 11:
                gBoxPremierLeague.Visible  = true;
                gBoxPremierLeague.Location = new Point(138, 105);
                gBoxPremierLeague.Size     = new Size(553, 219);
                break;

            case 12:
                gBoxRBS.Visible  = true;
                gBoxRBS.Location = new Point(138, 105);
                gBoxRBS.Size     = new Size(553, 219);
                break;

            case 13:
                gBoxSamsung.Visible  = true;
                gBoxSamsung.Location = new Point(138, 105);
                gBoxSamsung.Size     = new Size(553, 219);
                break;
            }
            //quCounter++;
            if (quNumber == 5)
            {
                hideAllGroupBoxes();
                FrmLevelSelect fls = new FrmLevelSelect();
                ActiveForm.Hide();
                fls.Show();
            }
        }
Beispiel #4
0
        private void loadLogos()
        {
            do
            {
                quNumber = rand.Next(1, 17);
                hideAllGroupBoxes();
            }while (questions.Contains(quNumber));
            questions.Add(quNumber);


            switch (quNumber)
            {
            case 1:
                GboxApple.Visible  = true;
                GboxApple.Location = new Point(185, 85);
                GboxApple.Size     = new Size(344, 324);
                break;

            case 2:
                GboxFacebook.Visible  = true;
                GboxFacebook.Location = new Point(185, 85);
                GboxFacebook.Size     = new Size(372, 327);
                break;

            case 3:
                GboxFanta.Visible  = true;
                GboxFanta.Location = new Point(185, 85);
                GboxFanta.Size     = new Size(352, 327);
                break;

            case 4:
                GboxDominos.Visible  = true;
                GboxDominos.Location = new Point(185, 85);
                GboxDominos.Size     = new Size(430, 320);
                break;

            case 5:
                GboxExplorer.Visible  = true;
                GboxExplorer.Location = new Point(185, 85);
                GboxExplorer.Size     = new Size(331, 352);
                break;

            case 6:
                GboxTacoBell.Visible  = true;
                GboxTacoBell.Location = new Point(185, 85);
                GboxTacoBell.Size     = new Size(344, 272);
                break;

            case 7:
                GboxHP.Visible  = true;
                GboxHP.Location = new Point(185, 85);
                GboxHP.Size     = new Size(344, 273);
                break;

            case 8:
                GboxAndroid.Visible  = true;
                GboxAndroid.Location = new Point(185, 85);
                GboxAndroid.Size     = new Size(344, 290);
                break;

            case 9:
                GboxLG.Visible  = true;
                GboxLG.Location = new Point(185, 85);
                GboxLG.Size     = new Size(344, 271);
                break;

            case 10:
                GboxTwitter.Visible  = true;
                GboxTwitter.Location = new Point(366, 131);
                GboxTwitter.Size     = new Size(386, 274);
                break;

            case 11:
                GboxTesco.Visible  = true;
                GboxTesco.Location = new Point(185, 85);
                GboxTesco.Size     = new Size(391, 232);
                break;

            case 12:
                GboxStarbucks.Visible  = true;
                GboxStarbucks.Location = new Point(185, 85);
                GboxStarbucks.Size     = new Size(344, 292);
                break;

            case 13:
                GboxPlaystation.Visible  = true;
                GboxPlaystation.Location = new Point(185, 85);
                GboxPlaystation.Size     = new Size(344, 266);
                break;

            case 14:
                GboxNike.Visible  = true;
                GboxNike.Location = new Point(185, 85);
                GboxNike.Size     = new Size(344, 270);
                break;

            case 15:
                GboxBeats.Visible  = true;
                GboxBeats.Location = new Point(185, 85);
                GboxBeats.Size     = new Size(344, 278);
                break;

            case 16:
                GboxPepsi.Visible  = true;
                GboxPepsi.Location = new Point(185, 85);
                GboxPepsi.Size     = new Size(344, 306);
                break;

            case 17:
                GboxAdobe.Visible  = true;
                GboxAdobe.Location = new Point(185, 85);
                GboxAdobe.Size     = new Size(344, 287);
                break;

            case 18:
                GboxMcds.Visible  = true;
                GboxMcds.Location = new Point(185, 85);
                GboxMcds.Size     = new Size(344, 274);
                break;
            }
            quCounter++;
            if (quCounter == 10)
            {
                hideAllGroupBoxes();
                FrmLevelSelect fls = new FrmLevelSelect();
                ActiveForm.Hide();
                fls.Show();
            }
        }
Beispiel #5
0
        private void loadLogos()
        {
            do
            {
                quNumber = rand.Next(1, 11);
            }while (questions.Contains(quNumber));
            questions.Add(quNumber);

            switch (quNumber)
            {
            case 1:
                hideAllGroupBoxes();
                gBoxBoeing1.Visible  = true;
                gBoxBoeing1.Size     = new Size(416, 386);
                gBoxBoeing1.Location = new Point(180, 100);
                break;

            case 2:
                hideAllGroupBoxes();
                gBoxBT2.Visible  = true;
                gBoxBT2.Size     = new Size(416, 386);
                gBoxBT2.Location = new Point(180, 100);
                break;

            case 3:
                hideAllGroupBoxes();
                gBoxEtihad3.Visible  = true;
                gBoxEtihad3.Size     = new Size(416, 386);
                gBoxEtihad3.Location = new Point(180, 100);
                break;

            case 4:
                hideAllGroupBoxes();
                gBoxGatorade4.Visible  = true;
                gBoxGatorade4.Size     = new Size(416, 386);
                gBoxGatorade4.Location = new Point(180, 100);
                break;

            case 5:
                hideAllGroupBoxes();
                gBoxHankook5.Visible  = true;
                gBoxHankook5.Size     = new Size(416, 386);
                gBoxHankook5.Location = new Point(180, 100);
                break;

            case 6:
                hideAllGroupBoxes();
                gBoxIsuzu6.Visible  = true;
                gBoxIsuzu6.Size     = new Size(416, 261);
                gBoxIsuzu6.Location = new Point(180, 106);
                break;

            case 7:
                hideAllGroupBoxes();
                gBoxKappa7.Visible  = true;
                gBoxKappa7.Size     = new Size(416, 386);
                gBoxKappa7.Location = new Point(180, 100);
                break;

            case 8:
                hideAllGroupBoxes();
                gBoxMontBlanc8.Visible  = true;
                gBoxMontBlanc8.Size     = new Size(416, 386);
                gBoxMontBlanc8.Location = new Point(180, 100);
                break;

            case 9:
                hideAllGroupBoxes();
                gBoxSoundCloud9.Visible  = true;
                gBoxSoundCloud9.Size     = new Size(416, 386);
                gBoxSoundCloud9.Location = new Point(180, 100);
                break;

            case 10:
                hideAllGroupBoxes();
                gBoxStaedtler10.Visible  = true;
                gBoxStaedtler10.Size     = new Size(416, 386);
                gBoxStaedtler10.Location = new Point(180, 100);
                break;
            }
            if (quNumber == 6)
            {
                FrmLevelSelect fls = new FrmLevelSelect();
                ActiveForm.Hide();
                fls.Show();
            }
        }