예제 #1
0
        public string UpdatePhrase( string strName, bool bIsMale)
        {
            ConvertChars c = new ConvertChars();

            switch (nPhraseIndex++)
            {
                case 0:
                    strCurrentPhrase = c.ConvertNameAndGender(strName, bIsMale, strPhrase1);
                    break;
                case 1:
                    strCurrentPhrase = c.ConvertNameAndGender(strName, bIsMale, strPhrase2);
                    break;
                case 2:
                    strCurrentPhrase = c.ConvertNameAndGender(strName, bIsMale, strPhrase3);
                    break;
                case 3:
                    return strCurrentPhrase;
                default:
                    return "";
            }

            return strCurrentPhrase;
        }