Пример #1
0
        //--------------------------------------------------------------
        public static List <MediaGroups> Static_GetListAll(string ConStr, string TextOptionAll = "...")
        {
            MediaGroups        m_MediaGroups = new MediaGroups(ConStr);
            List <MediaGroups> RetVal        = m_MediaGroups.GetList();

            TextOptionAll = (TextOptionAll == null) ? "" : TextOptionAll.Trim();
            if (TextOptionAll.Length > 0)
            {
                m_MediaGroups.MediaGroupName = TextOptionAll;
                m_MediaGroups.MediaGroupDesc = TextOptionAll;
                RetVal.Insert(0, m_MediaGroups);
            }
            return(RetVal);
        }
Пример #2
0
        //--------------------------------------------------------------
        public static List <MediaGroups> Static_GetList(string ConStr)
        {
            List <MediaGroups> RetVal = new List <MediaGroups>();

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