public frmQuestion2i()
        {
            InitializeComponent();

            // Tell the system that this form has been used
            Globalvariables.CompletedQuestionsI [1] = true;
            Globalvariables.form += 1;

            // start timer
            UserTimer.Start();
            lblTime.Text = "Timer  :  " + Convert.ToString(Globalvariables.timer); // This will make a smoother transition between forms.

            // This will check to see which character image the user has selected, and then display it within this form.
            switch (Globalvariables.Character)
            {
            case 1:
            {
                pictureCharacter.Image    = Properties.Resources.CharacterPlaceholder;      // Displays 1st image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;

            case 2:
            {
                pictureCharacter.Image    = Properties.Resources.CharacterPlaceholder2;      // 2nd image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;

            case 3:
            {
                pictureCharacter.Image    = Properties.Resources.NeilArmstrong;      // 3rd image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;

            case 4:
            {
                pictureCharacter.Image    = Properties.Resources.Predator2;      // 4th image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;
            }


            // Displays player score
            lblScore.Text = Convert.ToString(Globalvariables.points);

            // Displays player name
            lblPlayerName.Text = Globalvariables.username;
        }
예제 #2
0
        public frmQuestion3i()
        {
            InitializeComponent();

            // Tell the system that this form has been used
            Globalvariables.CompletedQuestionsI[2] = true;
            Globalvariables.form += 1;

            // Start timer
            UserTimer.Start();
            lblTime.Text = "Timer  :  " + Convert.ToString(Globalvariables.timer); // This will make a smoother transition between forms.

            // Display different character images
            if (Globalvariables.Character == 1)
            {
                pictureCharacter.Image    = Properties.Resources.CharacterPlaceholder; // Displays 1st image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }

            if (Globalvariables.Character == 2)
            {
                pictureCharacter.Image    = Properties.Resources.CharacterPlaceholder2; // 2nd image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            if (Globalvariables.Character == 3)
            {
                pictureCharacter.Image    = Properties.Resources.NeilArmstrong; // 3rd image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            if (Globalvariables.Character == 4)
            {
                pictureCharacter.Image    = Properties.Resources.Predator2; // 4th image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }


            // Displays player score
            lblScore.Text = Convert.ToString(Globalvariables.points);

            // Displays player name
            lblPlayerName.Text = Globalvariables.username;

            // Help for this question
            txtAnswe1.Text  = "F";
            txtAnswer2.Text = "A";
            txtAnswer3.Text = "H";
        }
        public frmQuestion5i()
        {
            InitializeComponent();

            // Tell the system that this form has been used
            Globalvariables.CompletedQuestionsI[4] = true;
            Globalvariables.form += 1;

            //Start Timer
            UserTimer.Start();
            Error.Start();
            DragcheckTimer.Start();
            lblTime.Text = "Timer  :  " + Convert.ToString(Globalvariables.timer); // This will make a smoother transition between forms.


            // This will check to see which character image the user has selected, and then display it within this form.
            switch (Globalvariables.Character)
            {
            case 1:
            {
                pictureCharacter.Image    = Properties.Resources.CharacterPlaceholder;      // Displays 1st image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;

            case 2:
            {
                pictureCharacter.Image    = Properties.Resources.CharacterPlaceholder2;      // 2nd image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;

            case 3:
            {
                pictureCharacter.Image    = Properties.Resources.NeilArmstrong;      // 3rd image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;

            case 4:
            {
                pictureCharacter.Image    = Properties.Resources.Predator2;      // 4th image
                pictureCharacter.SizeMode = PictureBoxSizeMode.Zoom;
            }
            break;
            }

            // Display player name
            lblPlayerName.Text = Globalvariables.username;

            // Display player score
            lblScore.Text = Convert.ToString(Globalvariables.points);


            //Enable dropping
            pbDropMercury.AllowDrop = true;
            pbDropVenus.AllowDrop   = true;
            pbDropEarth.AllowDrop   = true;
            pbDropMars.AllowDrop    = true;
            pbDropJupiter.AllowDrop = true;
            pbDropSaturn.AllowDrop  = true;
            pbDropUranus.AllowDrop  = true;
            pbDropNeptune.AllowDrop = true;
            pbDropPluto.AllowDrop   = true;
        }