Пример #1
0
        //--------------------------------------------------------------
        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
        //--------------------------------------------------------------
        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);
        }