示例#1
0
        private void AskQuestion()
        {
            var currentCategory = mCurrentPlayer.CurrentCategory();

            if (currentCategory == "Pop")
            {
                Question(this.qustions["Pop"]);
            }
            if (currentCategory == "Science")
            {
                Question(this.qustions["Science"]);
            }
            if (currentCategory == "Sports")
            {
                Question(this.qustions["Sports"]);
            }
            if (currentCategory == "Rock")
            {
                Question(this.qustions["Rock"]);
            }
            if (currentCategory == "History")
            {
                Question(this.qustions["History"]);
            }
            if (currentCategory == "Literature")
            {
                Question(this.qustions["Literature"]);
            }
        }
示例#2
0
        private void AskQuestion()
        {
            var currentCategory = mCurrentPlayer.CurrentCategory();

            if (currentCategory == "Pop")
            {
                Question(mPopQuestions);
            }
            if (currentCategory == "Science")
            {
                Question(mScienceQuestions);
            }
            if (currentCategory == "Sports")
            {
                Question(mSportsQuestions);
            }
            if (currentCategory == "Rock")
            {
                Question(mRockQuestions);
            }
        }