Ejemplo n.º 1
0
        /// <summary>
        /// Sets page title and page related fields and builds sections on page.
        /// </summary>
        /// <param name="page"></param>
        public void BuildPage(EformPage page)
        {
            PageTitle.Text = page.Title;

            SectionsRptr.DataSource = page.Sections;
            SectionsRptr.DataBind();
        }
Ejemplo n.º 2
0
        private void BuildPage(string pageTitle, int pageNumber)
        {
            EformPage page = new EformPage();

            page.Title      = pageTitle;
            page.PageNumber = pageNumber;
            _eform.AddPage(page);
        }
Ejemplo n.º 3
0
        public GetEform()
            : base()
        {
            this.Init += (a, b) =>
            {
                // create sample blank form
                _eform = new Eform();
                EformPage page = new EformPage();
                page.Sections = new EformSection[] { new EformSection() };
                _eform.Pages  = new EformPage[] { page };

                // default eform id and JSON eform from client POST
                EFormId.Value  = POSTEFormId;
                JSONData.Value = POSTJSONEform;

                ProcessClientRequest();
            };
        }