private string getRandomWord(Word_Language wl, Word_Pos wp)
        {
            List <String> ls = null;

            switch (wp)
            {
            case Word_Pos.adj:
                if (wl == Word_Language.Chinese)
                {
                    ls = ms_chinesedict_a;
                }
                else
                {
                    ls = ms_englishadjdict_a;
                }
                break;

            case Word_Pos.n:
                if (wl == Word_Language.Chinese)
                {
                    ls = ms_chinesedict_n;
                }
                else
                {
                    ls = ms_englishadjdict_n;
                }
                break;

            case Word_Pos.verb:
                if (wl == Word_Language.Chinese)
                {
                    ls = ms_chinesedict_v;
                }
                else
                {
                    ls = ms_englishadjdict_v;
                }
                break;
            }
            if (ls == null)
            {
                return(null);
            }
            else
            {
                return(ls[rand.Next(0, ls.Count - 1)]);
            }
        }
 private string getRandomWord(Word_Language wl, Word_Pos wp)
 {
     List<String> ls = null;
     switch (wp)
     {
         case Word_Pos.adj:
             if (wl == Word_Language.Chinese)
                 ls = ms_chinesedict_a;
             else
                 ls = ms_englishadjdict_a;
             break;
         case Word_Pos.n:
             if (wl == Word_Language.Chinese)
                 ls = ms_chinesedict_n;
             else
                 ls = ms_englishadjdict_n;
             break;
         case Word_Pos.verb:
             if (wl == Word_Language.Chinese)
                 ls = ms_chinesedict_v;
             else
                 ls = ms_englishadjdict_v;
             break;
     }
     if (ls == null)
         return null;
     else
         return ls[rand.Next(0, ls.Count - 1)];
 }