public frmQuestion3b() { InitializeComponent(); // This will tell the system that this form has been completed. Globalvariables.CompletedQuestionsB[2] = true; Globalvariables.form += 1; //Start Timers UserTimer.Start(); DragcheckTimer.Start(); ErrorClock.Start(); lblTime.Text = "Timer : " + Convert.ToString(Globalvariables.timer); // This will make a smoother transition between forms. 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); // Allow drop for the image boxes pbDropMars.AllowDrop = true; pbDropVenus.AllowDrop = true; pbDropNeptune.AllowDrop = true; pbDropJupiter.AllowDrop = true; pbDropUranus.AllowDrop = true; }
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; }