Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public void Load()
        {
            List <Page> pages;
            DataTable   dt = new DataTable();

            dt    = PageHandler.Load(this.surveyID);
            pages = dt.toList <Page>(new DataFieldMappings()
                                     .Add("PageID", "PageID")
                                     .Add("SurveyID", "SurveyID")
                                     .Add("PageName", "PageTitle")
                                     .Add("PageDescription", "Description")
                                     .Add("PageNo", "PageNo")
                                     , null);
            foreach (Page p in pages)
            {
                PageList.Add(p);
            }
        }