Exemplo n.º 1
0
        public static ArrayList GetComboBoxItems(ParamCaches pcs, string name)
        {
            if (pcs == null)
            {
                return(new ArrayList());
            }

            return(pcs[name].Items);
        }
Exemplo n.º 2
0
        public static ArrayList GetComboBoxItems(ParamCaches pcs, string sql, SqlTextType type, string colname)
        {
            string pt = ConfigurationManager.AppSettings[PublicConsts.PC_ParamType];

            if (!String.IsNullOrEmpty(pt) && (pt.ToLower() == "mem"))
            {
                if (pcs == null)
                {
                    return(new ArrayList());
                }

                return(pcs[sql].Items);
            }
            else
            {
                return(CtrlHelper.DataTableToItems(GetPublicDataTable(sql, type), colname));
            }
        }