Esempio n. 1
0
        // Get type 1 Chinese question
        public string GetQuestion(int questionNumber)
        {
            int    letter      = _english.GetLetterNumber(questionNumber);
            string chinese     = _chinese.GetChinese()[questionNumber];
            char   firstLetter = _english.GetFirstLetter(questionNumber);
            char   lastLetter  = _english.GetLastLetter(questionNumber);

            switch (letter)
            {
            case 1:
                return(chinese + BLANK + UNDERLINE + BLANK + OPEN_PAREN + letter + CLOSE_PAREN);

            case LEAST_LETTERS:
                return(chinese + BLANK + firstLetter + UNDERLINE + BLANK + OPEN_PAREN + letter + CLOSE_PAREN);

            default:
                return(chinese + BLANK + firstLetter + UNDERLINE + lastLetter + BLANK + OPEN_PAREN + letter + CLOSE_PAREN);
            }
        }