private void pictureBox4_Click(object sender, EventArgs e) { NewGame nova = new NewGame(); nova.Show(); this.Hide(); }
private void pictureBox1_Click(object sender, EventArgs e) { NewGame nova = new NewGame(); nova.poeni = points; nova.Show(); this.Close(); }
public void GenerateAnswers() { if (broj4 == 5) { NewGame nova = new NewGame(); nova.poeni = points; nova.Show(); this.Close(); } else { Random r = new Random(); int broj = r.Next(29); int numer = broj * 4; question = history[broj]; correct = r.Next(3); if (correct == 0) { answer = history_answers[numer]; answer2 = history_answers[numer + 1]; answer4 = history_answers[numer + 2]; answer3 = history_answers[numer + 3]; } else if (correct == 1) { answer2 = history_answers[numer]; answer = history_answers[numer + 1]; answer4 = history_answers[numer + 2]; answer3 = history_answers[numer + 3]; } else if (correct == 2) { answer3 = history_answers[numer]; answer = history_answers[numer + 1]; answer4 = history_answers[numer + 2]; answer2 = history_answers[numer + 3]; } else { answer4 = history_answers[numer]; answer = history_answers[numer + 1]; answer3 = history_answers[numer + 2]; answer2 = history_answers[numer + 3]; } broj4++; Invalidate(); } }
private void pictureBox4_Click(object sender, EventArgs e) { if (correct == 3) { points++; Correct3(); } else { NewGame nova = new NewGame(); nova.poeni = points; nova.Show(); this.Close(); } }
private void pbAnswer2_Click(object sender, EventArgs e) { if (correct == 1) { points++; Correct1(); } else { NewGame nova = new NewGame(); nova.poeni = points; nova.Show(); this.Close(); } }