Exemplo n.º 1
0
 private void DisplayError()
 {
     LoginFormErrorPanel.Visible = true;
     LoginFormErrorPanel.BringToFront();
     LoginFormErrorPanel.Top = 500;
     ErrorTimer.Start();
 }
Exemplo n.º 2
0
        public frmQuestion4()
        {
            InitializeComponent();

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

            // start timer
            UserTimer.Start();
            ErrorTimer.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);
        }
Exemplo n.º 3
0
 private void DisplayError()
 {
     SignUpErrorPanel.Visible = true;
     SignUpErrorPanel.Top     = 500;
     ErrorTimer.Start();
 }