Ejemplo n.º 1
0
        public List <ShowTypes> GetShow_Types()
        {
            List <ShowTypes> retVal = new List <ShowTypes>();

            try
            {
                ShowTypesBL showTypes = new ShowTypesBL(_connString);
                lkpShowTypes = showTypes.GetShow_Types();

                if (lkpShowTypes != null && lkpShowTypes.Rows.Count > 0)
                {
                    foreach (DataRow row in lkpShowTypes.Rows)
                    {
                        ShowTypes showType = new ShowTypes(_connString, Utils.DBNullToInt(row["Show_Type_ID"]));
                        retVal.Add(showType);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(retVal);
        }
Ejemplo n.º 2
0
        public List<ShowTypes> GetShow_Types()
        {
            List<ShowTypes> showTypeList = new List<ShowTypes>();
            ShowTypesBL showTypes = new ShowTypesBL();
            lkpShowTypes = showTypes.GetShow_Types();

            if (lkpShowTypes != null && lkpShowTypes.Count > 0)
            {
                foreach (sss.lkpShow_TypesRow row in lkpShowTypes)
                {
                    ShowTypes showType = new ShowTypes(row.Show_Type_ID);
                    showTypeList.Add(showType);
                }
            }

            return showTypeList;
        }
Ejemplo n.º 3
0
    private void PopulateListBoxes()
    {
        ShowTypes showTypes = new ShowTypes();
        List<ShowTypes> lkpShowTypes;
        lkpShowTypes = showTypes.GetShow_Types();
        lstShowTypes.DataSource = lkpShowTypes;
        lstShowTypes.DataBind();

        ShowYears showYears = new ShowYears();
        List<ShowYears> lkpShowYears;
        lkpShowYears = showYears.GetShow_Years();
        lstShowYears.DataSource = lkpShowYears;
        lstShowYears.DataBind();
    }