コード例 #1
0
ファイル: Countries.cs プロジェクト: hieuhan/hCMS
        //--------------------------------------------------------------
        public static List <Countries> Static_GetListAll(string ConStr, string TextOptionAll = "...")
        {
            Countries        m_Countries = new Countries(ConStr);
            List <Countries> RetVal      = m_Countries.GetList();

            TextOptionAll = (TextOptionAll == null) ? "" : TextOptionAll.Trim();
            if (TextOptionAll.Length > 0)
            {
                m_Countries.CountryName = TextOptionAll;
                m_Countries.CountryDesc = TextOptionAll;
                RetVal.Insert(0, m_Countries);
            }
            return(RetVal);
        }
コード例 #2
0
ファイル: Countries.cs プロジェクト: hieuhan/hCMS
        //--------------------------------------------------------------
        public static List <Countries> Static_GetList(string ConStr)
        {
            List <Countries> RetVal = new List <Countries>();

            try
            {
                Countries m_Countries = new Countries(ConStr);
                RetVal = m_Countries.GetList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(RetVal);
        }