예제 #1
0
        private void pictureBox4_Click(object sender, EventArgs e)
        {
            NewGame nova = new NewGame();

            nova.Show();
            this.Hide();
        }
예제 #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            NewGame nova = new NewGame();

            nova.poeni = points;
            nova.Show();
            this.Close();
        }
예제 #3
0
        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();
            }
        }
예제 #4
0
 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();
     }
 }
예제 #5
0
 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();
     }
 }