Example #1
0
        public void ShowMyFailedDialogBox()
        {
            MessageBoxButtons messageBoxButtons = new MessageBoxButtons();
            string            score             = listBoxScore.Items[number_of_questions_answered].ToString();

            insertPlayerScore(score);
            if (MessageBox.Show("You are incorrect, the right answer is " + getCorrectAns() + "\n Your final score is: " + listBoxScore.Items[number_of_questions_answered], "Lmfao NOOB, You LOST", MessageBoxButtons.RetryCancel) == DialogResult.Retry)
            {
                resetScore();
                scienceQuest = new Science();
                getscienceQuestion();
            }
            else
            {
                Dispose();
            }
        }