Exemplo n.º 1
0
        /// <summary>
        /// 获取支持的语种
        /// </summary>
        /// <returns>支持的语种列表</returns>
        public List <Language> GetTransLanguages()
        {
            if (_translate == null)
            {
                return(new List <Language>());
            }

            return(_translate.GetTransLanguages());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 加载基础信息
        /// </summary>
        private void LoadInfo()
        {
            List <Language> list = _trans.GetTransLanguages();

            if (list != null && list.Count > 0)
            {
                foreach (Language lan in list)
                {
                    string text = lan.Text;
                    cmbFrom.Items.Add(text);
                }
            }
        }