Пример #1
0
        private void AddEformSection(string title, bool showTitle, int rows, int columns)
        {
            if (currentTitleItem != null)
            {
                currentTitleItem.AddSectionName(title);
            }

            currentSection           = LoadControl("~/Core/DynamicEforms/EformSection.ascx") as EformSection;
            currentSection.Title     = title;
            currentSection.ShowTitle = showTitle;
            currentSection.Rows      = rows;
            currentSection.Columns   = columns;

            currentPage.AddSection(currentSection);
        }
Пример #2
0
        private void AddEformPage(string title, int pageNumber)
        {
            currentSection = null;

            currentPage       = LoadControl("~/Core/DynamicEforms/EformPage.ascx") as EformPage;
            currentPageNumber = pageNumber;

            if (currentTitleItem != null)
            {
                PageTitles.Controls.Add(currentTitleItem);
            }

            currentTitleItem       = LoadControl("~/Core/DynamicEforms/EformPageTitleListItem.ascx") as EformPageTitleListItem;
            currentTitleItem.Title = title;

            eformPages.Add(currentPage);
        }